antenna-fyi 0.11.0 → 0.11.2
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/lib/core.js +4 -4
- package/package.json +1 -1
- package/skill/SKILL.md +2 -0
package/lib/core.js
CHANGED
|
@@ -86,11 +86,11 @@ export async function scan({ lat, lng, radius_m = 500, device_id, supabaseUrl, s
|
|
|
86
86
|
};
|
|
87
87
|
});
|
|
88
88
|
|
|
89
|
-
// If nobody nearby, fallback to global discover
|
|
89
|
+
// If nobody nearby, fallback to global discover (1 per day)
|
|
90
90
|
if (others.length === 0 && device_id) {
|
|
91
91
|
const { data: globalData } = await sb.rpc("global_discover", {
|
|
92
92
|
p_device_id: device_id,
|
|
93
|
-
p_limit:
|
|
93
|
+
p_limit: 1,
|
|
94
94
|
});
|
|
95
95
|
const globalOthers = globalData || [];
|
|
96
96
|
if (globalOthers.length > 0) {
|
|
@@ -100,7 +100,7 @@ export async function scan({ lat, lng, radius_m = 500, device_id, supabaseUrl, s
|
|
|
100
100
|
profiles: buildProfiles(globalOthers),
|
|
101
101
|
_ref_map: _refMap,
|
|
102
102
|
global: true,
|
|
103
|
-
message: `附近 ${radius_m}m
|
|
103
|
+
message: `附近 ${radius_m}m 暂时没人。今天的全球推荐——这个人跟你可能聊得来。(每天 1 次)`,
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
return {
|
|
@@ -108,7 +108,7 @@ export async function scan({ lat, lng, radius_m = 500, device_id, supabaseUrl, s
|
|
|
108
108
|
radius_m,
|
|
109
109
|
profiles: [],
|
|
110
110
|
_ref_map: {},
|
|
111
|
-
message:
|
|
111
|
+
message: `附近暂时没人,今天的全球推荐已经用完了。明天再来!`,
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
package/package.json
CHANGED
package/skill/SKILL.md
CHANGED
|
@@ -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",而是真正有洞察的话
|