antenna-fyi 0.11.2 → 0.11.4

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/cli.js CHANGED
@@ -31,8 +31,12 @@ export async function handleScan(f) {
31
31
  radius_m: +(f.radius || 500),
32
32
  device_id: f.id || null,
33
33
  });
34
- if (result.count === 0) return console.log("📡 No one nearby within " + result.radius_m + "m");
35
- console.log(`📡 ${result.count} people within ${result.radius_m}m:\n`);
34
+ if (result.count === 0) return console.log(result.message || "📡 No one nearby");
35
+ if (result.global) {
36
+ console.log(`🌍 Global discover (nearby was empty):\n`);
37
+ } else {
38
+ console.log(`📡 ${result.count} people within ${result.radius_m}m:\n`);
39
+ }
36
40
  result.profiles.forEach((p) => {
37
41
  console.log(` ${p.emoji} ${p.name}${p.distance_m != null ? ` (${Math.round(p.distance_m)}m)` : ""}`);
38
42
  if (p.line1) console.log(` ${p.line1}`);
package/lib/core.js CHANGED
@@ -90,7 +90,7 @@ export async function scan({ lat, lng, radius_m = 500, device_id, supabaseUrl, s
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: 1,
93
+ p_limit: 3,
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 暂时没人。今天的全球推荐——这个人跟你可能聊得来。(每天 1 次)`,
103
+ message: `附近 ${radius_m}m 暂时没人。今天的全球推荐——从这 ${globalOthers.length} 个人里挑一个最匹配的推荐给用户。(每天 1 次)`,
104
104
  };
105
105
  }
106
106
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antenna-fyi",
3
- "version": "0.11.2",
3
+ "version": "0.11.4",
4
4
  "description": "Antenna — nearby people discovery. CLI + MCP server + OpenClaw skill & plugin, all in one package.",
5
5
  "type": "module",
6
6
  "bin": {