antenna-fyi 1.3.34 → 1.3.35

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
@@ -66,7 +66,7 @@ export async function handleScan(f) {
66
66
 
67
67
  export async function handleProfile(f) {
68
68
  const id = resolveId(f);
69
- if (!id) return console.error("Usage: antenna profile --id <platform>:<user_id> [--name Yi --personal-description '...' --looking-for '...' --conversation-style '...' --hide --visible true]");
69
+ if (!id) return console.error("Usage: antenna profile --id <platform>:<user_id> [--name Yi --personal-description '...' --looking-for '...' --conversation-style '...' --more-information '...' --contact 'WeChat: yi' --slug mira --hide --visible true]");
70
70
  if (f.name || f["personal-description"] !== undefined || f.line1 !== undefined || f["looking-for"] !== undefined || f.line2 !== undefined || f["conversation-style"] !== undefined || f.line3 !== undefined || f["more-information"] !== undefined || f.contact !== undefined || f.slug !== undefined || f.visible !== undefined || f.hide !== undefined) {
71
71
  const visible = f.hide ? false : (f.visible !== undefined ? f.visible === 'true' || f.visible === true : undefined);
72
72
  const payload = { device_id: id };
@@ -1075,7 +1075,7 @@ export function printHelp() {
1075
1075
  Usage:
1076
1076
  antenna scan --lat 39.99 --lng 116.48 [--radius 500] (max 1000) [--id <platform>:<user_id>]
1077
1077
  antenna checkin --id <platform>:<user_id> --lat 39.99 --lng 116.48
1078
- antenna profile --id <platform>:<user_id> [--name Yi --personal-description '...' --looking-for '...' --conversation-style '...' --contact 'WeChat: yi' --hide --visible true]
1078
+ antenna profile --id <platform>:<user_id> [--name Yi --personal-description '...' --looking-for '...' --conversation-style '...' --more-information '...' --contact 'WeChat: yi' --slug mira --hide --visible true]
1079
1079
  antenna accept --id <platform>:<user_id> --target <ref_or_device_id> [--contact 'WeChat: yi']
1080
1080
  antenna pass --id <platform>:<user_id> --target <ref_or_device_id> (or --ref 1)
1081
1081
  antenna matches --id <platform>:<user_id>
package/lib/core.js CHANGED
@@ -265,7 +265,8 @@ export async function setProfile({
265
265
 
266
266
  // Pack structured fields into matching_context JSON
267
267
  let contextJson = matching_context;
268
- if (matching_context || interest_tags || city || links || is_active !== undefined || archetype_override !== undefined) {
268
+ const needsContextPack = matching_context || interest_tags || city || links || is_active !== undefined || archetype_override !== undefined || (line1 && !matching_context) || (line2 && !matching_context) || (line3 && !matching_context);
269
+ if (needsContextPack) {
269
270
  // Read existing context from DB to merge
270
271
  let existing = {};
271
272
  try {
@@ -284,6 +285,10 @@ export async function setProfile({
284
285
  existing.context = matching_context;
285
286
  }
286
287
  }
288
+ // If no explicit context but lines are being set, auto-generate context from lines
289
+ if (!matching_context && !existing.context && (line1 || line2 || line3)) {
290
+ existing.context = [line1, line2, line3].filter(Boolean).join(". ");
291
+ }
287
292
  if (interest_tags) existing.interestTags = interest_tags;
288
293
  if (city) existing.city = city;
289
294
  if (links) existing.links = links;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antenna-fyi",
3
- "version": "1.3.34",
3
+ "version": "1.3.35",
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": {