antenna-fyi 1.2.16 → 1.2.18

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
@@ -624,6 +624,8 @@ export async function eventScan({ code, device_id, supabaseUrl, supabaseKey }) {
624
624
  line3: p.line3,
625
625
  checked_in: !!p.checked_in,
626
626
  role: p.role || "participant",
627
+ status: p.status || "active",
628
+ application_context: p.application_context || null,
627
629
  source: "event",
628
630
  };
629
631
  });
@@ -368,7 +368,7 @@ def handle_event_create(params: dict) -> str:
368
368
  did = _device_id(params["sender_id"], params["channel"])
369
369
 
370
370
  rpc_params = {
371
- "p_device_id": did,
371
+ "p_created_by": did,
372
372
  "p_name": params["name"],
373
373
  }
374
374
  if params.get("lat") is not None:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antenna-fyi",
3
- "version": "1.2.16",
3
+ "version": "1.2.18",
4
4
  "description": "Antenna — nearby people discovery. CLI + MCP server + OpenClaw skill & plugin, all in one package.",
5
5
  "type": "module",
6
6
  "bin": {
package/skill/EVENTS.md CHANGED
@@ -90,8 +90,13 @@ Generate a GPS link for setting event location.
90
90
 
91
91
  ### When someone shares an event link
92
92
  1. Extract the code from `antenna.fyi/events/CODE`
93
- 2. Call `antenna_event_join(code)` — this will auto-check in if applicable
94
- 3. If join fails with "Create a profile first", guide profile creation then retry
93
+ 2. Call `antenna_event_join(code)` — this checks everything:
94
+ - If no profile "Create a profile first"
95
+ - If event requires approval and no `application_context` provided → returns `needs_screening: true` + `screening_questions` array
96
+ - If screening questions returned: **ask the user each question**, collect answers, then call `antenna_event_join(code, application_context="collected answers")` again
97
+ - If join succeeds with `status: pending` → tell user "waiting for organizer approval"
98
+ - If join succeeds with `status: active` → user is in!
99
+ 3. Auto check-in happens automatically if event has started + GPS within 1km
95
100
 
96
101
  ### When someone says "who's here" at an event
97
102
  1. Call `antenna_event_scan(code)`