antenna-fyi 1.3.9 → 1.3.10

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
@@ -67,15 +67,14 @@ export async function handleProfile(f) {
67
67
  if (!f.id) return console.error("Usage: antenna profile --id <platform>:<user_id> [--name Yi --emoji 🦦 --line1 '...' --line2 '...' --line3 '...']");
68
68
  if (f.name || f.line1 || f.line2 || f.line3 || f.visible !== undefined || f.hide !== undefined) {
69
69
  const visible = f.hide ? false : (f.visible !== undefined ? f.visible === 'true' || f.visible === true : undefined);
70
- const data = await setProfile({
71
- device_id: f.id,
72
- display_name: f.name,
73
- emoji: f.emoji || "👤",
74
- line1: f.line1,
75
- line2: f.line2,
76
- line3: f.line3,
77
- ...(visible !== undefined && { visible }),
78
- });
70
+ const payload = { device_id: f.id };
71
+ if (f.name) payload.display_name = f.name;
72
+ if (f.emoji) payload.emoji = f.emoji;
73
+ if (f.line1 !== undefined) payload.line1 = f.line1;
74
+ if (f.line2 !== undefined) payload.line2 = f.line2;
75
+ if (f.line3 !== undefined) payload.line3 = f.line3;
76
+ if (visible !== undefined) payload.visible = visible;
77
+ const data = await setProfile(payload);
79
78
  console.log("✅ Profile saved");
80
79
  console.log(JSON.stringify(data, null, 2));
81
80
  } else {
package/lib/core.js CHANGED
@@ -195,7 +195,7 @@ export async function getProfile({ device_id, supabaseUrl, supabaseKey }) {
195
195
  export async function setProfile({
196
196
  device_id,
197
197
  display_name,
198
- emoji = "👤",
198
+ emoji,
199
199
  line1,
200
200
  line2,
201
201
  line3,
@@ -208,7 +208,7 @@ export async function setProfile({
208
208
  const { data, error } = await sb.rpc("upsert_profile", {
209
209
  p_device_id: device_id,
210
210
  p_display_name: display_name || null,
211
- p_emoji: emoji,
211
+ p_emoji: emoji || null,
212
212
  p_line1: line1 || null,
213
213
  p_line2: line2 || null,
214
214
  p_line3: line3 || null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antenna-fyi",
3
- "version": "1.3.9",
3
+ "version": "1.3.10",
4
4
  "description": "Antenna \u2014 nearby people discovery. CLI + MCP server + OpenClaw skill & plugin, all in one package.",
5
5
  "type": "module",
6
6
  "bin": {