antenna-openclaw-plugin 1.2.30 → 1.2.32
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 +2 -8
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -296,13 +296,6 @@ export default function register(api: any) {
|
|
|
296
296
|
|
|
297
297
|
const fuzzy = fuzzyCoords(lat, lng);
|
|
298
298
|
|
|
299
|
-
const { error: upsertErr } = await supabase.rpc("upsert_profile_location", {
|
|
300
|
-
p_device_id: deviceId, p_lng: fuzzy.lng, p_lat: fuzzy.lat,
|
|
301
|
-
});
|
|
302
|
-
if (upsertErr) {
|
|
303
|
-
logger.warn("Antenna: upsert_profile_location failed:", upsertErr.message);
|
|
304
|
-
}
|
|
305
|
-
|
|
306
299
|
const { data: nearby, error } = await supabase.rpc("nearby_profiles", {
|
|
307
300
|
p_lat: fuzzy.lat, p_lng: fuzzy.lng, p_radius_m: radius,
|
|
308
301
|
});
|
|
@@ -349,6 +342,7 @@ export default function register(api: any) {
|
|
|
349
342
|
line1: p.line1,
|
|
350
343
|
line2: p.line2,
|
|
351
344
|
line3: p.line3,
|
|
345
|
+
distance_m: p.distance_m ?? p.dist_meters ?? null,
|
|
352
346
|
};
|
|
353
347
|
});
|
|
354
348
|
|
|
@@ -862,7 +856,7 @@ export default function register(api: any) {
|
|
|
862
856
|
const profiles = others.map((p, i) => {
|
|
863
857
|
const ref = String(i + 1);
|
|
864
858
|
_refMap[ref] = p.device_id;
|
|
865
|
-
return { ref, emoji: p.emoji || "👤", name: p.display_name || "匿名", line1: p.line1, line2: p.line2, line3: p.line3, source: "event" };
|
|
859
|
+
return { ref, emoji: p.emoji || "👤", name: p.display_name || "匿名", line1: p.line1, line2: p.line2, line3: p.line3, checked_in: !!p.checked_in, role: p.role || "participant", status: p.status || "active", application_context: p.application_context || null, source: "event" };
|
|
866
860
|
});
|
|
867
861
|
|
|
868
862
|
(api as any)._antennaRefMap = { ...(api as any)._antennaRefMap, ..._refMap };
|