antenna-fyi 1.3.42 → 1.3.43

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 CHANGED
@@ -362,6 +362,8 @@ export async function setProfile({
362
362
  p_api_key: api_key || null,
363
363
  });
364
364
  if (error) throw new Error(error.message);
365
+ if (data?.error) throw new Error(data.message || data.error);
366
+ if (data?.device_id) device_id = data.device_id;
365
367
 
366
368
  // Generate embedding using lines + matching_context for better quality
367
369
  try {
@@ -221,7 +221,10 @@ def handle_profile(params: dict) -> str:
221
221
  rpc_params["p_api_key"] = params.get("api_key")
222
222
  resp = sb.rpc("upsert_profile", rpc_params).execute()
223
223
 
224
+ if isinstance(resp.data, dict) and resp.data.get("error"):
225
+ return _ok({"error": resp.data.get("message") or resp.data.get("error")})
224
226
  if resp.data:
227
+ did = resp.data.get("device_id") or did
225
228
  public_url = None
226
229
  try:
227
230
  profile_resp = sb.rpc("get_profile", {"p_device_id": did}).execute()
@@ -457,6 +457,8 @@ export default function register(api: any) {
457
457
  });
458
458
 
459
459
  if (error) return ok({ error: error.message });
460
+ if (data?.error) return ok({ error: data.message || data.error });
461
+ if (data?.device_id) deviceId = data.device_id;
460
462
 
461
463
  let publicUrl = null;
462
464
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antenna-fyi",
3
- "version": "1.3.42",
3
+ "version": "1.3.43",
4
4
  "description": "Antenna — nearby people discovery. CLI + MCP server + OpenClaw skill & plugin, all in one package.",
5
5
  "type": "module",
6
6
  "bin": {