antenna-openclaw-plugin 1.2.5 → 1.2.6

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/index.ts CHANGED
@@ -793,6 +793,38 @@ export default function register(api: any) {
793
793
  });
794
794
 
795
795
  // ═══════════════════════════════════════════════════════════════════
796
+ // Tool: antenna_event_checkin
797
+ // ═════════════════════════════════════════════════════════════════
798
+ api.registerTool({
799
+ name: "antenna_event_checkin",
800
+ description: "Check in at an event — marks you as present at the event location. Optionally updates GPS.",
801
+ parameters: {
802
+ type: "object",
803
+ properties: {
804
+ code: { type: "string", description: "Event code" },
805
+ sender_id: { type: "string" },
806
+ channel: { type: "string" },
807
+ lat: { type: "number", description: "Latitude (optional)" },
808
+ lng: { type: "number", description: "Longitude (optional)" },
809
+ },
810
+ required: ["code", "sender_id", "channel"],
811
+ },
812
+ async execute(_id: string, params: any) {
813
+ const cfg = getConfig(api);
814
+ const supabase = getSupabase(cfg);
815
+ const deviceId = deriveDeviceId(params.sender_id, params.channel);
816
+ const fuzzy = (params.lat != null && params.lng != null) ? fuzzyCoords(params.lat, params.lng) : { lat: null, lng: null };
817
+ const { data, error } = await supabase.rpc("event_checkin", {
818
+ p_code: params.code,
819
+ p_device_id: deviceId,
820
+ p_lat: fuzzy.lat,
821
+ p_lng: fuzzy.lng,
822
+ });
823
+ if (error) return ok({ error: error.message });
824
+ return ok(data);
825
+ },
826
+ });
827
+
796
828
  // Tool: antenna_check_matches
797
829
  // ═══════════════════════════════════════════════════════════════════
798
830
  api.registerTool({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antenna-openclaw-plugin",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "Antenna — agent-mediated nearby people discovery for OpenClaw",
5
5
  "openclaw": {
6
6
  "extensions": ["./index.ts"]
@@ -297,3 +297,9 @@ Scan people in an event. No distance limit — returns all participants.
297
297
  - `code`: event code
298
298
  - `sender_id`, `channel`: from context
299
299
  - Returns profiles with `source: "event"` tag
300
+
301
+ ### `antenna_event_checkin`
302
+ Check in at an event — marks you as present at the event location. Optionally updates GPS.
303
+ - `code`: event code
304
+ - `sender_id`, `channel`: from context
305
+ - `lat`, `lng`: optional GPS coordinates