antenna-openclaw-plugin 1.3.25 → 1.3.26
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 +12 -2
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -416,11 +416,21 @@ export default function register(api: any) {
|
|
|
416
416
|
|
|
417
417
|
if (error) return ok({ error: error.message });
|
|
418
418
|
|
|
419
|
+
// Read back profile to get slug for public page link
|
|
420
|
+
let publicUrl = null;
|
|
421
|
+
try {
|
|
422
|
+
const { data: profile } = await supabase.rpc("get_profile", { p_device_id: deviceId });
|
|
423
|
+
if (profile?.profile_slug) {
|
|
424
|
+
publicUrl = `https://www.antenna.fyi/p/${profile.profile_slug}`;
|
|
425
|
+
}
|
|
426
|
+
} catch {}
|
|
427
|
+
|
|
419
428
|
return ok({
|
|
420
429
|
updated: true,
|
|
421
|
-
profile: { display_name: data.display_name,
|
|
430
|
+
profile: { display_name: data.display_name,
|
|
422
431
|
line1: data.line1, line2: data.line2, line3: data.line3, visible: data.visible },
|
|
423
|
-
|
|
432
|
+
public_url: publicUrl,
|
|
433
|
+
next_step: "IMPORTANT: 1) Send the public_url to the user — this is their shareable profile link. 2) Call antenna_bind to generate a GPS link. Do not skip either step.",
|
|
424
434
|
});
|
|
425
435
|
},
|
|
426
436
|
});
|