antenna-fyi 1.3.35 → 1.3.37

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,8 +66,8 @@ 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 '...' --more-information '...' --contact 'WeChat: yi' --slug mira --hide --visible true]");
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) {
69
+ if (!id) return console.error("Usage: antenna profile --id <platform>:<user_id> [--name Yi --personal-description '...' --looking-for '...' --conversation-style '...' --more-information '...' --tags 'AI,design,music' --city 'Beijing' --contact 'WeChat: yi' --slug mira --hide --visible true]");
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.tags !== undefined || f.city !== 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 };
73
73
  if (f.name) payload.display_name = f.name;
@@ -80,7 +80,11 @@ export async function handleProfile(f) {
80
80
  if (f["more-information"] !== undefined) payload.matching_context = f["more-information"];
81
81
  if (f.contact !== undefined) payload.contact_info = f.contact;
82
82
  if (f.slug !== undefined) payload.profile_slug = f.slug;
83
- if (visible !== undefined) payload.visible = visible;
83
+ if (f.tags !== undefined) payload.interest_tags = typeof f.tags === 'string' ? f.tags.split(',').map(t => t.trim()).filter(Boolean) : [f.tags];
84
+ if (f.city !== undefined) payload.city = f.city;
85
+ if (visible !== undefined) payload.visible = visible;
86
+ const config = loadConfig();
87
+ if (config.key) payload.api_key = config.key;
84
88
  const data = await setProfile(payload);
85
89
  if (data?.error) {
86
90
  console.error("❌ " + data.error);
@@ -1075,7 +1079,7 @@ export function printHelp() {
1075
1079
  Usage:
1076
1080
  antenna scan --lat 39.99 --lng 116.48 [--radius 500] (max 1000) [--id <platform>:<user_id>]
1077
1081
  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 '...' --more-information '...' --contact 'WeChat: yi' --slug mira --hide --visible true]
1082
+ antenna profile --id <platform>:<user_id> [--name Yi --personal-description '...' --looking-for '...' --conversation-style '...' --more-information '...' --tags 'AI,design,music' --city 'Beijing' --contact 'WeChat: yi' --slug mira --hide --visible true]
1079
1083
  antenna accept --id <platform>:<user_id> --target <ref_or_device_id> [--contact 'WeChat: yi']
1080
1084
  antenna pass --id <platform>:<user_id> --target <ref_or_device_id> (or --ref 1)
1081
1085
  antenna matches --id <platform>:<user_id>
package/lib/core.js CHANGED
@@ -258,6 +258,7 @@ export async function setProfile({
258
258
  profile_slug,
259
259
  is_active,
260
260
  archetype_override,
261
+ api_key,
261
262
  supabaseUrl,
262
263
  supabaseKey,
263
264
  }) {
@@ -308,6 +309,7 @@ export async function setProfile({
308
309
  p_visible: visible,
309
310
  p_matching_context: contextJson || null,
310
311
  p_contact_info: contact_info || null,
312
+ ...(api_key ? { p_api_key: api_key } : {}),
311
313
  });
312
314
  if (error) throw new Error(error.message);
313
315
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antenna-fyi",
3
- "version": "1.3.35",
3
+ "version": "1.3.37",
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": {
package/skill/SKILL.md CHANGED
@@ -44,6 +44,7 @@ Plugin 安装后,agent **主动**开始引导,不要等用户问。
44
44
  跟用户聊几句,了解他们是谁、做什么、想认识什么人。然后 agent 自己生成:
45
45
  - more_information(~200 字,给 agent 匹配用的私密上下文,不展示给别人)
46
46
  - 从中提炼 personal_description/looking_for/conversation_style + display_name
47
+ - 提取 interest_tags(最多 8 个,如 "AI agents", "music", "design")
47
48
 
48
49
  展示预览给用户确认:
49
50
  > 你的名片: