antenna-openclaw-plugin 1.3.27 → 1.3.29

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.
@@ -1,325 +1,368 @@
1
1
  ---
2
2
  name: antenna
3
- description: "Nearby people discovery via Antenna. Use when a user shares location, asks who's nearby, wants to set up their profile card, or interacts with match results. Handles location-based social discovery through the antenna_scan, antenna_profile, antenna_accept, antenna_check_matches, and antenna_bind tools."
3
+ description: "AI-native social discovery via Antenna. Use when a user wants to meet interesting people - through nearby scan, global recommendations, profile links, or events. Handles profile management, matching, and contact exchange."
4
4
  metadata: { "openclaw": { "always": true } }
5
5
  ---
6
6
 
7
- # Antenna - Nearby People Discovery
7
+ # Antenna - AI-Native Social Discovery
8
8
 
9
- You have access to Antenna for location-based social discovery.
9
+ Antenna 帮你的用户发现值得认识的人。不只是"附近的人"--profile link、全球推荐、活动,都是发现路径。
10
10
 
11
- **How to call Antenna:**
12
- - If you have Antenna plugin tools registered (antenna_scan, antenna_profile, etc.) - use them directly.
13
- - If not, use CLI: `antenna <command> [flags]`. Example: `antenna scan --id <platform>:<user_id>`. The CLI supports all the same features.
14
- - All tool names map to CLI commands: `antenna_scan` → `antenna scan`, `antenna_event_create` → `antenna event --create`, etc.
15
- - **Always pass `chat_id`** when calling any Antenna tool. This is the chat/channel ID from your message context (e.g. Discord channel ID, Telegram chat ID). Antenna uses it to send you notifications about matches and event approvals.
11
+ **核心流程:发现 判断 → accept → 交换联系方式。**
16
12
 
17
- ## Onboarding - 装上之后主动引导
13
+ 发现可以来自任何渠道:
14
+ - 📡 **附近扫描** - `antenna_scan`,基于 GPS 的周边发现
15
+ - 🌍 **全球推荐** - `antenna_discover`,每天 1 个最匹配的人
16
+ - 🔗 **Profile 链接** - 用户收到 `antenna.fyi/p/xxx` 链接,agent 读取后直接 accept
17
+ - 🎪 **活动** - `antenna_event_scan`,同一个活动里的人
18
18
 
19
- Plugin 安装后,agent 应该**主动**开始引导,不要等用户问"怎么用"
19
+ **Accept 不需要先 scan。** 只要你知道对方的 `ref`、`profile_slug` 或 `device_id`,就可以直接 accept
20
20
 
21
- **前置条件:** 用户需要先在 antenna.fyi 注册账号,从 Dashboard (antenna.fyi/me) 获取 API key,然后把 key 交给 agent。如果用户还没注册,引导他们去 antenna.fyi 注册。
21
+ ## How to call Antenna
22
+
23
+ - 如果有 Antenna plugin tools(antenna_scan, antenna_profile 等),直接用。
24
+ - 如果没有,用 CLI:`antenna <command> [flags]`。
25
+ - **所有 tool 必须传 `chat_id`**--Antenna 用它发通知。
26
+
27
+ ## Onboarding - 装上后主动引导
28
+
29
+ Plugin 安装后,agent **主动**开始引导,不要等用户问。
30
+
31
+ **前置条件:** 用户需要先在 antenna.fyi 注册账号,从 Dashboard 获取 API key。如果没注册,引导去 antenna.fyi。
22
32
 
23
33
  ### 流程
24
34
 
25
- **第一步:打招呼 + 解释**
26
- > "嘿,你装了 Antenna--它能帮你发现附近有意思的人。先确认一下,你在 antenna.fyi 注册过了吗?拿到 API key 了吗?有了的话我帮你做张名片,然后看看附近有谁。"
35
+ **第一步:拿到 API key → 配置**
36
+ > "嘿,你装了 Antenna--它能帮你发现有意思的人。先确认一下,你在 antenna.fyi 注册过了吗?拿到 API key 了吗?"
37
+
38
+ 用户给了 API key 后,调 `antenna config --key <key>` 验证。这会返回 `user_id` 和 `device_id`。
39
+
40
+ **⚠️ 之后所有操作必须用 API key 验证返回的 device_id(格式 `user:xxx`)。不要自己拼 `channel:sender_id`。** 这样 agent 创建的 profile 才能在 dashboard 上显示。
27
41
 
28
42
  **第二步:聊天收集 → 生成名片 → 确认**
29
43
 
30
- Agent 跟用户聊几句,了解他们是谁、做什么、对什么感兴趣、想认识什么人。然后 agent 自己完成以下工作(不需要用户参与):
31
- - 生成 matching_context(~200 字,用于 embedding 匹配,不展示给别人)
32
- - 从中提炼 line1/2/3 + 选一个 emoji + display_name
44
+ 跟用户聊几句,了解他们是谁、做什么、想认识什么人。然后 agent 自己生成:
45
+ - more_information(~200 字,给 agent 匹配用的私密上下文,不展示给别人)
46
+ - 从中提炼 line1/2/3 + display_name
33
47
 
34
- 然后展示名片预览给用户确认:
48
+ 展示预览给用户确认:
35
49
  > 你的名片:
36
- > 🦦 Yi
50
+ > Yi
37
51
  > · Product Designer,做 AI 搜索体验
38
52
  > · 对 AI agent、音乐、游泳感兴趣
39
53
  > · 想认识做 AI 产品和独立创作的人
40
54
  >
41
55
  > 这样可以吗?要改哪里告诉我。
42
56
 
43
- 用户确认后才调 `antenna_profile(action="set")` 保存(matching_context + line1/2/3 + emoji + name 一起存)。
44
- 用户要改 → 改完重新预览 → 再确认。
57
+ 确认后用 config 里的 device_id 调 `antenna_profile(action="set")` 保存。**不要跳过确认。**
45
58
 
46
- **不要跳过确认。名片是展示给别人看的,必须让用户看过才存。**
59
+ **ℹ️ 联系方式**
47
60
 
48
- **第二步半:名片存好后,立刻推荐 2-3 个匹配的人**
61
+ 名片确认后,问用户想填什么联系方式(WeChat、Telegram、邮箱等):
62
+ > "你想填什么联系方式?这个只有双向匹配后才会展示给对方,不会公开。"
49
63
 
50
- 名片保存成功后,**立刻**调 `antenna_discover` 获取 2-3 个全球推荐,让用户马上看到 Antenna 的价值:
51
- > "名片存好了!我先帮你看看有谁跟你特别像——"
52
- > (展示 2-3 个推荐 + 个性化匹配理由)
64
+ 用户给了联系方式后,调 `antenna_profile(action="set", contact_info="...")` 保存。
65
+ 用户也可以跳过——联系方式不是必填的,以后也可以补。
53
66
 
54
- 这一步让用户立刻体验到产品价值,不要跳过。
67
+ **⚠️ sender_id 用 config 里的 device_id,不要用 channel:sender_id。**
55
68
 
56
- **第三步:推荐完后,立刻调 antenna_bind**
69
+ **第三步:立刻推荐 2-3 个人**
57
70
 
58
- **这一步是强制的。** 名片保存成功后,你**必须立刻**调用 `antenna_bind` 生成链接并发给用户。不要问用户要不要,不要等用户说什么,直接调。
71
+ 名片存好后,**立刻**调 `antenna_initial_recommendations` 获取首次推荐:
72
+ > "名片存好了!我先帮你看看有谁跟你特别像--"
59
73
 
60
- 调用 `antenna_bind` 生成链接,发给用户:
61
- > "名片存好了 ✅ 点这个链接,在手机浏览器打开,允许定位就行:
62
- > [链接]
63
- > 我收到你的位置后会自动帮你看看附近有谁。"
74
+ 这是一次性的首次推荐(不消耗每日 discover 额度)。如果返回空,说明还没有足够的用户--跳过这步。
64
75
 
65
- 备选:如果用户在 Telegram/WhatsApp 里,也可以直接发位置消息。但优先用链接。
76
+ **第四步:发公开链接 + 介绍功能**
66
77
 
67
- **⚠️ 如果你保存了名片但没有调 antenna_bind,你就没有完成 onboarding。**
78
+ Profile 存好后,返回里会有 `public_url`(如 `antenna.fyi/p/yi`)。**必须发给用户,并介绍所有功能:**
79
+ > "这是你的公开名片链接:[public_url]
80
+ > 你可以把它发给别人,对方的 agent 看到链接就能直接 accept 你。
81
+ >
82
+ > Antenna 能帮你做这些事:
83
+ > 📡 **附近扫描** - 发位置或绑定 GPS,看看周围有没有有意思的人
84
+ > 🌍 **每日推荐** - 每天帮你找一个全球最像你的人
85
+ > 🔗 **名片链接** - 把你的链接发给任何人,对方 agent 看到就能 accept
86
+ > 🎪 **活动** - 创建或加入活动,认识同一个场景里的人
87
+ > 🍾 **漂流瓶** - 写一段话丢出去,随机一个陌生人会收到
88
+ >
89
+ > 想试哪个?"
90
+
91
+ **第五步:调 antenna_bind 获取 GPS 链接**
68
92
 
69
- **第四步:设置匹配检查定时任务**
93
+ **强制。** 名片存好后**必须立刻**调用 `antenna_bind` 生成链接并发给用户:
94
+ > "点这个链接,在手机浏览器打开,允许定位就行:[链接]"
70
95
 
71
- onboarding 完成后,帮用户设置一个每小时自动检查匹配的 cron 任务,这样有人 accept 用户时能及时通知。
96
+ GPS 不是 Antenna 的唯一入口,但它开启了附近发现的能力。
72
97
 
73
- 如果你有 cron 能力(Hermes: `hermes cron`,OpenClaw: `openclaw cron`),创建一个定时任务:
74
- - 每 1 小时调用 `antenna_check_matches`
75
- - 如果有新的 mutual match 或 incoming accept,通知用户
76
- - 如果没有新匹配,不打扰用户
98
+ **第五步:设置定时任务**
77
99
 
78
- 示例(Hermes):
100
+ 设一个每小时检查匹配的 cron:
79
101
  ```
80
- 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."
102
+ openclaw 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."
81
103
  ```
82
104
 
83
- **第五步:问用户要不要全球推荐**
84
-
85
- cron 设完后,问用户一句:
105
+ **第六步:问要不要全球推荐**
86
106
  > "要我每天帮你找一个全球最像你的人吗?"
87
107
 
88
- 用户说要 cron 每天调 `antenna_discover` 推送。
89
- 用户说不要 → 只在 scan 没人时 fallback。
108
+ ### Linking to antenna.fyi account
90
109
 
91
- **第六步:启动实时通知**
110
+ 如果用户之前通过 agent 创建过 profile(没有网站账号),现在注册了 antenna.fyi:
111
+ 1. 让用户从 antenna.fyi/me 复制 API key
112
+ 2. 调 `antenna_link_account(api_key = "ant_xxx")`
113
+ 3. 确认:"关联成功!你现在可以在 dashboard 上看到完整的 profile 和匹配记录了。"
92
114
 
93
- onboarding 完成后,启动 `antenna watch` 后台进程,实时接收匹配通知和活动审批通知。
94
-
95
- **判断方法(不要猜):**
96
- 1. 先试 `antenna status --id <device_id>` - 如果输出 "Watch: ✅ running",已经在跑,不需要再启动
97
- 2. 如果不在跑,试 `antenna watch --id <device_id> --push hermes,openclaw &` 启动后台进程
98
- 3. 如果 exec 报错(不支持后台进程),用 cron 替代:
99
-
100
- Hermes cron:
101
- ```
102
- 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."
103
- ```
104
-
105
- OpenClaw cron:
106
- ```
107
- openclaw 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."
108
- ```
109
-
110
- **优先级:** watch > cron。watch 是 2 分钟延迟,cron 是 1 小时。
115
+ 这把 agent 创建的 profile(带全部历史)关联到网站账号。
111
116
 
112
117
  ## When to use
113
118
 
114
- - **首次安装后**: 主动开始 onboarding(名片 → 位置)
115
- - User shares a location (Telegram live location, WhatsApp pin, or tells you where they are)
116
- - User asks "附近有谁" / "who's nearby" / "周围有什么人"
117
- - User wants to set up or edit their profile card (名片)
118
- - User accepts or skips a match
119
- - User asks about match status or wants to exchange contact info
119
+ - **首次安装后**:主动 onboarding
120
+ - 用户分享位置 `antenna_scan`
121
+ - 用户问"附近有谁" `antenna_scan`
122
+ - 用户收到 profile 链接(`antenna.fyi/p/xxx`)→ 读取 profile 判断 `antenna_accept`
123
+ - 用户想编辑名片 `antenna_profile`
124
+ - 用户说 accept / skip `antenna_accept` / `antenna_pass`
125
+ - 用户问匹配状态 → `antenna_check_matches`
120
126
 
121
- ## Tools
127
+ ## Discovery Paths
122
128
 
123
- ### `antenna_scan`
124
- Scan for nearby people **and events**. Returns raw profile cards + active events within 5km.
125
- **Read-only - does NOT update your location.** To update location, use `antenna_checkin` or `antenna_bind`.
126
- - `lat`, `lng`: coordinates (from `LocationLat`/`LocationLon` context, or geocoded from user input)
127
- - `radius_m`: search radius in meters (default 500, max 1000) for people; events search uses 5km
128
- - `sender_id`: the user's id from message context
129
- - `channel`: the platform/channel name (any platform works: telegram, discord, whatsapp, webchat, signal, slack, matrix, clawx, etc.)
130
- - Returns `profiles` (nearby people) + `nearby_events` (active events with name, participants count, code)
129
+ ### 1. 附近扫描(antenna_scan)
130
+ 基于 GPS 发现 1km 内的人。需要位置信息。
131
+ - 如果没有 GPS,先调 `antenna_bind` 或让用户发位置
132
+ - 返回 raw profile cards,**agent 判断谁值得推荐**
131
133
 
132
- **Location staleness:** Before scanning, check if the user's GPS is recent. If `last_seen_at` is older than 2 hours, prompt the user to update their location (`antenna_bind` or `antenna_checkin`). Stale GPS = wrong results.
134
+ ### 2. 全球推荐(antenna_discover)
135
+ 每天 1 个全球最匹配的人,不需要 GPS。
136
+ - 用在日常 cron 里,或用户主动要求
133
137
 
134
- ## GPS Logic
138
+ ### 3. Profile 链接
139
+ 用户收到 `antenna.fyi/p/xxx` 链接时:
140
+ 1. 用 `web_fetch` 读取页面--页面里有 `<script id="antenna-profile-data">` JSON,包含完整 profile
141
+ 2. 读取 more_information、interest_tags、个人描述等
142
+ 3. 结合你对用户的了解,判断是否推荐
143
+ 4. 如果用户想 accept → 调 `antenna_accept(profile_slug="xxx")`
144
+
145
+ **不需要先 scan。** Profile 链接是独立的发现路径。
135
146
 
136
- **Profile GPS** - the user's location ("where am I")
137
- - Updated via `antenna_bind(purpose="profile")` or `antenna_checkin`
138
- - Location is never stored raw
139
- - Used for: `antenna_scan` (nearby people/events), `antenna_event_checkin` (distance check)
140
- - Has `last_seen_at` timestamp. **Expires conceptually after 2h** - agent should prompt refresh
147
+ ### 4. 活动(Events)
148
+ 同一个活动里的人。详见 EVENTS.md。
141
149
 
142
- **Event GPS** - the event's location ("where is the event")
143
- - Set via `antenna_bind(purpose="event")` or `antenna_event_create(lat, lng)`
144
- - Precise coordinates (NOT blurred)
145
- - Used for: check-in distance verification (≤1km), `nearby_events` discovery (5km)
146
- - Does not expire - event location is fixed
150
+ ## Tools
147
151
 
148
- **Relationship:** check-in = compare profile GPS vs event GPS. scan = use profile GPS to find nearby people + events.
152
+ ### `antenna_scan`
153
+ 扫描附近的人和活动。**只读--不会更新你的位置。**
154
+ - `lat`, `lng`:坐标(可选,没有的话用已绑定的 GPS)
155
+ - `radius_m`:搜索半径(默认 500m,最大 1000m)
156
+ - `sender_id`, `channel`, `chat_id`:必填
157
+ - 返回 `profiles`(附近的人)+ `nearby_events`(5km 内的活动)
158
+ - 每个 profile 包含 `ref`(用于 accept)、`profile_slug`(公开链接)、`more_information`(匹配上下文)
149
159
 
150
- After receiving the nearby profiles, **you decide** who to recommend:
151
- - Use everything you know about the user: their SOUL.md, memory, recent conversations, interests, current mood
152
- - Compare each nearby person's three-line card against your understanding of the user
153
- - Write a personalized match reason for each person you recommend
154
- - Skip people who clearly aren't a match - don't recommend everyone
155
- - If you're unsure, lean toward recommending (let the user decide)
160
+ **GPS 时效:** 如果 `last_seen_at` 超过 2 小时,提示用户更新位置。
156
161
 
157
162
  ### `antenna_profile`
158
- View or update the user's name card.
159
- - `action`: "get" or "set"
160
- - `sender_id`, `channel`: from context
161
- - For "set": `display_name`, `emoji`, `line1`, `line2`, `line3`, `visible`, `matching_context`
162
-
163
- The name card has:
164
- - **emoji**: a single emoji that represents them
165
- - **display_name**: how they want to be called
166
- - **line1**: who they are / what they do
167
- - **line2**: what they're into
168
- - **line3**: what they're looking for right now
169
- - **matching_context** (not shown to others): A richer description generated by the agent based on what it knows about the user - career background, tech stack, interests, projects, personality traits. ~200 words. **This is the source data for embedding-based matching.** line1/2/3 are derived from it for display, not the other way around.
170
-
171
- **During onboarding, generate `matching_context` FIRST** based on your conversation with the user (+ memory, SOUL.md, etc.). Then derive line1/2/3 from it. Don't ask the user to write matching_context - you write it. Example:
172
- > "Product designer at a tech company in Beijing, focusing on AI search experience. Interested in music (Sakamoto), swimming, cooking, language learning. Recently exploring AI agent ecosystems and social discovery. Looking to connect with AI builders, indie hackers, and creative technologists."
163
+ 查看或更新用户名片。
164
+ - `action`:"get" "set"
165
+ - `sender_id`, `channel`, `chat_id`
166
+ - "set" 时传:`display_name`, `line1`, `line2`, `line3`, `visible`, `matching_context`
167
+
168
+ 名片内容:
169
+ - **display_name**:显示名称
170
+ - **line1**:个人描述(谁 / 做什么)
171
+ - **line2**:想认识的人
172
+ - **line3**:想要的交流方式
173
+ - **matching_context**(more_information,不展示给别人):agent 基于对用户的了解生成的详细描述,~200 字。**这是匹配的核心数据源。** line1/2/3 从它提炼出来,不是反过来。
174
+ - **contact_info**(联系方式,私密):用户填的联系方式(WeChat、Telegram、邮箱等),**只在双向匹配后展示给对方**。不显示在公开名片、不显示在 scan 结果。
173
175
 
174
176
  ### `antenna_accept`
175
- Accept a match after the user sees results. Can optionally include contact info to share.
176
- - `sender_id`, `channel`, `target_device_id`
177
- - `contact_info` (optional): e.g. "WeChat: yi_xxx" or "Telegram: @yi"
177
+ 接受一个匹配。**不需要先 scan**--任何发现路径都可以触发 accept。
178
+ - `sender_id`, `channel`, `chat_id`:必填
179
+ - 三种方式指定对方(任选一种):
180
+ - `ref`:来自 scan/discover 结果的编号
181
+ - `profile_slug`:来自 profile 链接(如 `antenna.fyi/p/yi` → `profile_slug="yi"`)
182
+ - `target_device_id`:内部 ID(尽量用 ref 或 slug)
183
+ - `contact_info`(可选):分享联系方式
184
+
185
+ ### `antenna_pass`
186
+ 跳过一个人,不再推荐。
187
+ - `sender_id`, `channel`, `chat_id`
188
+ - `ref` 或 `target_device_id`
178
189
 
179
190
  ### `antenna_check_matches`
180
- Check for mutual matches and contact info updates.
181
- - `sender_id`, `channel`
182
- - Returns mutual matches with any contact info the other person shared
191
+ 检查匹配状态。
192
+ - `sender_id`, `channel`, `chat_id`
193
+ - 返回 mutual matches + incoming accepts + 联系方式
183
194
 
184
195
  ### `antenna_bind`
185
- Generate a GPS binding link. **You MUST call this immediately after saving a profile.** Do not skip this step.
186
- - `sender_id`, `channel`: from context
187
- - `purpose`: optional - `'profile'` (default) updates user location; `'event'` sets event location
188
- - `event_code`: required when `purpose='event'`
189
- - Returns a URL like `https://www.antenna.fyi/locate?token=xxx`
190
- - Send this link to the user - they open it on their phone, allow GPS, and their location is automatically shared
191
- - **MANDATORY after profile save. Do not wait for user to ask.**
192
- - **For events:** When a creator needs to set event location, call with `purpose='event'` and `event_code`. The GPS will update the event's coordinates, NOT the user's profile.
196
+ 生成 GPS 绑定链接。
197
+ - `sender_id`, `channel`, `chat_id`
198
+ - `purpose`:`'profile'`(默认,更新用户位置) `'event'`(设活动位置)
199
+ - `event_code`:purpose=event 时必填
200
+ - 返回 URL,用户在手机打开后自动共享位置
201
+ - **Onboarding 后必须调用。** 不要等用户问。
202
+
203
+ ### `antenna_link_account`
204
+ 关联 agent profile 到 antenna.fyi 网站账号。
205
+ - `sender_id`, `channel`, `chat_id`:必填
206
+ - `user_id`:用户的 antenna.fyi 账号 UUID(从 dashboard 获取)
207
+ - 把已有的 agent profile(带全部历史)绑定到网站账号
208
+ - 如果用户先在网站注册了(产生空 profile),空 profile 自动删除
209
+ - 一次性操作
193
210
 
194
211
  ### `antenna_discover`
195
- Get today's global recommendation - the person most similar to you worldwide. 1 per day, no repeats.
196
- - `sender_id`, `channel`: from context
197
- - Returns 1 profile (embedding similarity match) that hasn't been recommended before
198
- - If all users have been recommended, returns a message saying "wait for new people"
199
- - Use this in the daily cron job, or when user asks "find someone interesting globally"
200
-
201
- ### `antenna_pass`
202
- Pass/skip a person. They won't be recommended again.
203
- - `sender_id`, `channel`: from context
204
- - `ref`: ref number from scan/discover results (e.g. '1')
205
- - `target_device_id`: device ID (use ref instead when possible)
206
- - Use when the user says "skip", "pass", "not interested", etc.
212
+ 全球推荐--每天 1 个最匹配的人。
213
+ - `sender_id`, `channel`, `chat_id`
214
+ - 不需要 GPS
215
+ - 如果所有人都推荐过了,返回"等新人加入"
216
+
217
+ ### `antenna_initial_recommendations`
218
+ 首次推荐--注册后立刻看到 2-3 个最匹配的人。
219
+ - `sender_id`, `channel`, `chat_id`: from context
220
+ - One-time only - second call returns empty
221
+ - Does NOT consume daily discover quota
222
+ - Use in onboarding step 3, right after profile save
207
223
 
208
224
  ### `antenna_checkin`
209
- Check in at a location - update your position so others can find you when they scan.
210
- - `lat`, `lng`: coordinates (required)
211
- - `sender_id`, `channel`: from context
212
- - `place_name`: optional name of the place
213
- - Use when the user says "I'm at XX" or wants to be discoverable without scanning others
225
+ 签到--更新你的位置。
226
+ - `lat`, `lng`:必填
227
+ - `sender_id`, `channel`, `chat_id`
228
+ - `place_name`:可选
229
+ - 用于"我在 XX"场景
214
230
 
215
- ## Data Transparency - what Antenna sends
231
+ ## GPS Logic
216
232
 
217
- Antenna only communicates with Supabase (bcudjloikmpcqwcptuyd.supabase.co) via HTTPS.
233
+ **Profile GPS** - 用户的位置
234
+ - 通过 `antenna_bind(purpose="profile")` 或 `antenna_checkin` 更新
235
+ - 位置不原始存储
236
+ - 2 小时后概念上过期,agent 应提示刷新
218
237
 
219
- **Data sent:**
220
- - GPS coordinates (never stored raw location is processed server-side)
221
- - Your three-line profile card (text you wrote yourself)
222
- - Match status (accept/skip)
223
- - Contact info you choose to share
224
- - Profile embedding vector (generated from your 3 lines, used for matching)
238
+ **Event GPS** - 活动的位置
239
+ - 通过 `antenna_bind(purpose="event")` `antenna_event_create(lat, lng)` 设置
240
+ - 精确坐标(不模糊)
241
+ - 不过期
225
242
 
226
- **Data NOT sent:**
227
- - Your conversations with your agent
228
- - Your files, browsing history, or any other personal data
229
- - Anything not listed above
243
+ ## Behavior Guidelines
230
244
 
231
- All data is transmitted over HTTPS and stored in Supabase (Tokyo region).
232
- Visibility is controlled by time decay — recent event participants are fully visible, older connections gradually fade.
233
- Source code is open: https://github.com/H1an1/Antenna
245
+ ### 名片创建原则
246
+ - **不要让用户填表。** 跟用户聊天,你来生成。
247
+ - **每次只问一个问题。**
248
+ - **用户说的原话尽量保留。** 帮缩短但让用户确认。
249
+ - **不要在名片里写联系方式。** 联系方式在 accept 时分享。
250
+ - **line1 必填。**
251
+ - **确认后才存。**
234
252
 
235
- ## Behavior guidelines
253
+ ### Showing results - 你来判断
236
254
 
237
- ### First-time user - 名片创建原则
255
+ scan discover 返回的是 raw profile cards,**没有打分**。你需要:
256
+ 1. 读每个人的名片 + more_information
257
+ 2. 结合你对用户的全部了解判断谁值得推荐
258
+ 3. 为每个推荐的人写一句**个性化的理由**
259
+ 4. **不要推荐所有人。** 质量 > 数量。
238
260
 
239
- 具体流程见上方 Onboarding 第二步。以下是 agent 应该遵守的原则:
261
+ **全球推荐 fallback:** 如果 scan 结果有 `global: true`,说明附近没人。告诉用户"附近暂时没人,但全球有这个人跟你很像"。
240
262
 
241
- - **不要让用户填表。** 不要一次性说"请填写 emoji、名字、三句话介绍"--跟用户聊天,你来生成。
242
- - **每次只问一个问题。** 不要一口气问完所有信息。
243
- - **用户说的原话尽量保留。** 可以帮用户缩短太长的回答,但要在预览时让用户确认。
244
- - **不要在名片里写联系方式。** 名片三句话对所有人可见。联系方式应该在 accept 时单独分享,只有双方都同意后才能看到。如果用户在聊天中提到联系方式,提醒他们。
245
- - **line1 必填。** 后端会拒绝没有 line1 的新 profile,并对缺失的 line2/line3 返回 warning。
246
- - **确认后才存。** 见 Onboarding 第二步。
263
+ ### Profile 链接场景
247
264
 
248
- ### Showing results - 你来判断,不是服务器
265
+ 用户收到或提到 `antenna.fyi/p/xxx` 时:
266
+ 1. 抓取页面,读 `#antenna-profile-data` JSON
267
+ 2. 展示对方 profile + 你的判断
268
+ 3. 用户想 accept → `antenna_accept(profile_slug="xxx")`
269
+ 4. 用户想 skip → `antenna_pass` 或直接不操作
249
270
 
250
- **第一次 scan 的新用户:** 简短一句解释:"这是附近的人。Antenna 基于 AI 匹配,看到感兴趣的人 accept,双向匹配后交换联系方式。"
271
+ **这跟 scan 是完全平级的发现路径。**
251
272
 
252
- **Profile 不完整时:** 如果用户的 profile 只有 1 行,提示:"你的名片只填了一行,补完后匹配质量会更好。要现在补吗?"
273
+ ### Accepting & contact exchange
274
+ accept 可以从任何路径触发:
275
+ 1. 调 `antenna_accept`(用 ref、profile_slug 或 device_id)
276
+ 2. **立刻问**:"想分享什么联系方式给对方?"
277
+ 3. 用户给了 → 再调一次 `antenna_accept` 带 `contact_info`
278
+ 4. 用户不想 → "先 accept 着,以后想分享再说"
279
+ 5. 如果 mutual match → 展示对方联系方式
280
+ 6. 如果还没 mutual → "已发出,等对方回应"
253
281
 
254
- `antenna_scan` 返回的是附近所有人的名片,**没有打分、没有预匹配**。你需要:
282
+ **不要跳过第 2 步。**
255
283
 
256
- **全球推荐 fallback:** 如果 scan 结果里有 `global: true`,说明附近没人,这些是全球推荐。告诉用户"附近暂时没人,但全球有这几个有意思的人",然后正常推荐。用户仍然可以 accept。
284
+ ### Privacy
285
+ - **永远不要显示 device_id**--这是内部标识符
286
+ - 只展示名字 + 三句话 + 你写的匹配理由
287
+ - 不要泄露对方的平台或用户名
288
+ - 联系方式只在用户明确同意时分享
289
+ - GPS 不原始存储
257
290
 
258
- 1. 读每个人的名片(emoji、name、line1/2/3)
259
- 2. 结合你对用户的全部了解,判断谁值得推荐
260
- 3. 为每个推荐的人写一句**个性化的理由**--不是"你们都提到了 X",而是真正有洞察的话
291
+ ### Time Decay - 可见性衰减
292
+ - Event 后 0-7 天:全部参与者互相可见
293
+ - 7-30 天:只有互相 scan 过 / 有共同活动的人可见
294
+ - 30 天后:需要新事件激活
261
295
 
262
- **⚠️ 隐私规则:展示结果时绝对不要显示 device_id。** `device_id`(如 `platform:user123`)是内部标识符,包含用户的平台和 ID,属于隐私信息。只显示 emoji + 名字 + 三句话 + 你写的匹配理由。`device_id` 只在内部调 `antenna_accept` 时用,不要展示给用户。
296
+ ### Heartbeat - 自动查匹配
297
+ Plugin 后台每 10 分钟查一次新匹配。看到 `[Antenna] 🎉` 时:
298
+ 1. 调 `antenna_check_matches`
299
+ 2. 告诉用户 + 展示对方名片
300
+ 3. 展示联系方式(如果有)
263
301
 
264
- 比如你知道用户最近在学吉他,看到附近有人写"组乐队找吉他手":
265
- > 🎸 **小林** - 在组后摇乐队,找吉他手
266
- > → 你不是最近在学吉他吗?这人在找吉他手诶
302
+ ## Events
267
303
 
268
- 比如你知道用户是设计师,对方也做设计:
269
- > 🎨 **Kira** - UI 设计师,在做 AI 产品
270
- > → 你们都做 AI 方向的设计,可以聊聊各自的方法论
304
+ 详见 EVENTS.md。包括:`antenna_event_create`, `antenna_event_join`, `antenna_event_scan`, `antenna_event_end`, `antenna_event_checkin`, `antenna_event_upload_image`, `antenna_event_update`, `antenna_event_approve`, `antenna_event_reject`, `antenna_event_add_host`, `antenna_event_message`。
271
305
 
272
- **不要推荐所有人。** 如果附近 5 个人里只有 1 个真的匹配,就只推 1 个。质量 > 数量。
306
+ ## Drift Bottle (漂流瓶)
273
307
 
274
- ### Accepting & contact exchange
275
- When the user wants to accept a match:
276
- 1. Call `antenna_accept` with the target's device_id
277
- 2. **立刻问**:"想分享什么联系方式给对方?微信号、Telegram、手机号、Instagram......随便哪个都行"
278
- 3. 用户给了联系方式 → call `antenna_accept` again with `contact_info`
279
- 4. 用户不想分享 → "也行,先 accept 着,以后想分享再说"
280
- 5. If mutual match, tell the user the other person's contact info (if they shared)
281
- 6. If not mutual yet, tell the user: "已发出,等对方回应"
282
-
283
- **不要跳过第 2 步。** 联系方式是最终目标--不然 accept 了也没用,两个人找不到对方。
284
-
285
- ### Checking match status
286
- Use `antenna_check_matches` when:
287
- - User asks "有人回复我吗" / "匹配状态怎么样"
288
- - Periodically during conversation if the user has pending matches
289
-
290
- ### Location sources
291
- - **Telegram/WhatsApp location**: context will have `LocationLat`, `LocationLon` - use directly
292
- - **User says a place name**: geocode it first (use web_search or a geocoding service), then call antenna_scan
293
- - **Live location**: note that it's real-time, tell the user you'll check for new people
308
+ 写一段话,丢进海里。随机一个陌生人会捡起它。完全匿名、随机、好玩。
294
309
 
295
- ### Privacy
296
- - Never reveal exact coordinates to other users
297
- - **Never show device_id to users** (e.g. `telegram:12345`, `discord:67890`) - this is internal only
298
- - Never share someone's platform or username with another user
299
- - Only show the profile info (name, emoji, three lines)
300
- - Contact info is only shared when the user explicitly agrees
301
- - Location is never stored raw
310
+ ### 规则
311
+ - 每条消息最多 500
312
+ - 一次只能捡一个瓶子,回复后才能捡下一个
313
+ - 完全匿名:永远不暴露谁丢的、谁捡的
314
+ - 漂流瓶 7 天后过期
302
315
 
303
- ### Time Decay — 可见性随时间衰减
316
+ ### Tools
304
317
 
305
- Profiles 是永久的,但可见性随时间衰减:
306
- - **Event 后 0-7 天:** 全部参与者互相可见
307
- - **7-30 天:** 只有互相 scan 过 / 有共同活动的人可见
308
- - **30 天后:** 需要新事件重新激活
318
+ #### `antenna_drift_throw`
319
+ 丢一个漂流瓶。
320
+ - `sender_id`, `channel`, `chat_id`
321
+ - `message`:瓶中的内容(最多 500 字)
322
+ - 返回 bottle_id 和确认
309
323
 
310
- 事件(Event)是最强的信任信号——"同一个活动"比"附近"更有意义。
324
+ #### `antenna_drift_pick`
325
+ 捡一个漂流瓶。
326
+ - `sender_id`, `channel`, `chat_id`
327
+ - 返回瓶中消息(匿名)+ bottle_id
328
+ - 如果海上没瓶了,说没有
329
+ - 如果还有没回复的瓶子,提示先回复
311
330
 
312
- ### Heartbeat - 自动查匹配
331
+ #### `antenna_drift_reply`
332
+ 回复一个捡起的漂流瓶。
333
+ - `sender_id`, `channel`, `chat_id`
334
+ - `bottle_id`:要回复的瓶子 ID
335
+ - `reply`:回复内容(最多 500 字)
336
+ - 回复会匿名漂回给丢瓶子的人
313
337
 
314
- Plugin 自带后台服务,每 10 分钟轮询一次 Supabase 查新的 mutual match。如果发现新匹配,会在用户下次跟 agent 说话时通过 `[Antenna] 🎉` 提示注入 context。
338
+ #### `antenna_drift_check`
339
+ 检查漂流瓶状态。
340
+ - `sender_id`, `channel`, `chat_id`
341
+ - 返回:你丢的瓶子有没有新回复 + 你捡的瓶子有没有待回复
315
342
 
316
- 当你看到 `[Antenna] 🎉 有 X 个新的匹配通知` 时:
317
- 1. 调 `antenna_check_matches` 拿详情
318
- 2. 告诉用户:"有人想认识你!" + 展示对方名片
319
- 3. 如果对方分享了联系方式,一并展示
343
+ #### `antenna_drift_my_bottles`
344
+ 查看你丢过的所有瓶子。
345
+ - `sender_id`, `channel`, `chat_id`
346
+ - 返回每个瓶子的状态:🌊 漂流中 / 👀 被捡起 / 💬 已回复
320
347
 
321
- 用户不需要主动问,agent 会自动收到通知。
348
+ ### 什么时候推荐漂流瓶
349
+ - 用户无聊、想找人聊天
350
+ - 用户想写点什么但不知道发给谁
351
+ - 用户想要随机的、意外的连接
352
+ - 用户想匿名表达
353
+ - 附近没人的时候,作为替代发现方式
322
354
 
323
- ## Events
355
+ ### 隐私
356
+ - **永远不暴露** 谁丢的瓶子
357
+ - **永远不暴露** 谁捡的瓶子
358
+ - 只展示:消息内容、是否有回复、回复内容
359
+ - device_id 永远不展示给用户
360
+
361
+ ## Data Transparency
362
+
363
+ Antenna 只跟 Supabase (bcudjloikmpcqwcptuyd.supabase.co) 通信。
364
+
365
+ **发送的数据:** GPS(不原始存储)、名片文本、匹配状态、你选择分享的联系方式、Profile embedding。
366
+ **不发送的数据:** 你跟 agent 的对话、文件、浏览记录。
324
367
 
325
- For event-related tools and behavior (creating, joining, scanning, managing events), see the **antenna-events** skill (`EVENTS.md`). Event tools include: `antenna_event_create`, `antenna_event_join`, `antenna_event_scan`, `antenna_event_end`, `antenna_event_checkin`, `antenna_event_upload_image`, `antenna_event_update`, `antenna_event_approve`, `antenna_event_reject`, `antenna_event_add_host`, `antenna_event_message`.
368
+ Source code: https://github.com/H1an1/Antenna