antenna-openclaw-plugin 1.2.19 → 1.2.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antenna-openclaw-plugin",
3
- "version": "1.2.19",
3
+ "version": "1.2.21",
4
4
  "description": "Antenna — agent-mediated nearby people discovery for OpenClaw",
5
5
  "openclaw": {
6
6
  "extensions": ["./index.ts"]
@@ -82,11 +82,17 @@ Generate a GPS link for setting event location.
82
82
  ## Agent Behavior
83
83
 
84
84
  ### When someone says "create an event"
85
- 1. Ask for event name (required) and description (optional)
86
- 2. **Ask if participants need approval** ("Do you want to review and approve participants before they join?"). If yes, ask what screening questions to include.
87
- 3. Call `antenna_event_create` with `requires_approval` and `screening_questions` if applicable
88
- 4. If no GPS provided, call `antenna_bind(purpose="event", event_code=CODE)` and send the link
89
- 5. Share the event URL with the user
85
+ Collect the following info through conversation (ask one by one, don't dump all at once):
86
+ 1. **Event name** (required) "活动叫什么名字?"
87
+ 2. **Description** "简单描述一下这个活动?"
88
+ 3. **Time** "什么时候开始?大概多长?" (convert to starts_at / ends_at ISO strings)
89
+ 4. **Location** "活动在哪里?" If user gives an address, geocode it. If vague, generate a bind link after creation.
90
+ 5. **Approval** — "需要审批参与者吗?" If yes:
91
+ 6. **Screening questions** — "你想问报名者什么问题?" Collect as a list.
92
+
93
+ Then call `antenna_event_create` with all collected info.
94
+ If no GPS, call `antenna_bind(purpose="event", event_code=CODE)` and send the link.
95
+ Share the event URL with the user.
90
96
 
91
97
  ### When someone shares an event link
92
98
  1. Extract the code from `antenna.fyi/events/CODE`
@@ -365,3 +365,41 @@ Add a co-host to the event. Only creator can add.
365
365
  - `code`: event code
366
366
  - `sender_id`, `channel`: from context
367
367
  - `ref`: participant ref number to promote to co-host
368
+
369
+ ---
370
+
371
+ ## Part 2: Event Behavior Guide
372
+
373
+ ### Creating an event
374
+ Collect info through conversation (ask one by one, don't dump all at once):
375
+ 1. **Event name** (required) — "活动叫什么名字?"
376
+ 2. **Description** — "简单描述一下这个活动?"
377
+ 3. **Time** — "什么时候开始?大概多长?" (convert to starts_at / ends_at ISO strings)
378
+ 4. **Location** — "活动在哪里?" If user gives an address, geocode it. If vague, generate a bind link after creation.
379
+ 5. **Approval** — "需要审批参与者吗?" If yes:
380
+ 6. **Screening questions** — "你想问报名者什么问题?" Collect as a list.
381
+
382
+ Then call `antenna_event_create` with all collected info.
383
+ If no GPS, call `antenna_bind(purpose="event", event_code=CODE)` and send the link.
384
+ Share the event URL with the user.
385
+
386
+ ### Joining an event
387
+ 1. Extract the code from `antenna.fyi/events/CODE`
388
+ 2. Call `antenna_event_join(code)` — this checks everything:
389
+ - If no profile → "Create a profile first"
390
+ - If event requires approval and no `application_context` provided → returns `needs_screening: true` + `screening_questions`
391
+ - If screening questions returned: **ask the user each question**, collect answers, then call `antenna_event_join(code, application_context="answers")` again
392
+ - If `status: pending` → "waiting for organizer approval"
393
+ - If `status: active` → user is in! Auto check-in if event started + GPS within 1km.
394
+
395
+ ### Scanning an event
396
+ 1. Call `antenna_event_scan(code)`
397
+ 2. Hosts see pending participants with `application_context` (screening answers)
398
+ 3. Recommend who to meet based on user's interests
399
+ 4. Creator/co-host appears with organizer badge
400
+
401
+ ### Approving/rejecting participants
402
+ Only creator or co-host can approve/reject:
403
+ - `antenna_event_approve(code, ref)` → participant becomes active
404
+ - `antenna_event_reject(code, ref)` → participant is rejected
405
+ - Notifications are sent automatically to the applicant