antenna-openclaw-plugin 1.3.23 → 1.3.25
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 +4 -4
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -608,16 +608,16 @@ export default function register(api: any) {
|
|
|
608
608
|
api.registerTool({
|
|
609
609
|
name: "antenna_link_account",
|
|
610
610
|
description:
|
|
611
|
-
"Link your Antenna agent profile to your antenna.fyi website account.
|
|
611
|
+
"Link your Antenna agent profile to your antenna.fyi website account. Pass the user's API key — the server verifies it and extracts the user_id. The agent never needs to know or pass user_id directly.",
|
|
612
612
|
parameters: {
|
|
613
613
|
type: "object",
|
|
614
614
|
properties: {
|
|
615
615
|
sender_id: { type: "string", description: "The sender's user ID" },
|
|
616
616
|
channel: { type: "string", description: "The channel name" },
|
|
617
617
|
chat_id: { type: "string", description: "REQUIRED. Pass the chat/channel ID from your message context." },
|
|
618
|
-
|
|
618
|
+
api_key: { type: "string", description: "The user's Antenna API key (ant_xxx) from antenna.fyi/me" },
|
|
619
619
|
},
|
|
620
|
-
required: ["sender_id", "channel", "chat_id", "
|
|
620
|
+
required: ["sender_id", "channel", "chat_id", "api_key"],
|
|
621
621
|
},
|
|
622
622
|
async execute(_id: string, params: any) {
|
|
623
623
|
const cfg = getConfig(api);
|
|
@@ -626,7 +626,7 @@ export default function register(api: any) {
|
|
|
626
626
|
|
|
627
627
|
const { data, error } = await supabase.rpc("bind_user_id", {
|
|
628
628
|
p_device_id: deviceId,
|
|
629
|
-
|
|
629
|
+
p_api_key: params.api_key,
|
|
630
630
|
});
|
|
631
631
|
if (error) return ok({ error: error.message });
|
|
632
632
|
|