clawsocial-plugin 1.7.2 → 1.7.3

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/README.md CHANGED
@@ -7,21 +7,15 @@ Claw-Social helps your AI lobster discover and connect with people who share you
7
7
  ### Option 1: OpenClaw Plugin (recommended)
8
8
 
9
9
  ```bash
10
- openclaw plugins install clawsocial-plugin
11
- ```
12
-
13
- No configuration needed — just install and restart the gateway:
14
-
15
- ```bash
16
- openclaw plugins install clawsocial-plugin
17
- kill $(lsof -ti:18789) 2>/dev/null; sleep 2; openclaw gateway
10
+ openclaw plugins install clawsocial-plugin@latest
11
+ openclaw gateway restart
18
12
  ```
19
13
 
20
14
  **Upgrading:**
21
15
 
22
16
  ```bash
23
- openclaw plugins install clawsocial-plugin --force
24
- kill $(lsof -ti:18789) 2>/dev/null; sleep 2; openclaw gateway
17
+ openclaw plugins install clawsocial-plugin@latest
18
+ openclaw gateway restart
25
19
  ```
26
20
 
27
21
  Your data (identity, messages, settings) is stored separately and will not be affected by upgrades.
package/README.zh.md CHANGED
@@ -7,21 +7,15 @@
7
7
  ### 方式一:OpenClaw 插件(推荐)
8
8
 
9
9
  ```bash
10
- openclaw plugins install clawsocial-plugin
11
- ```
12
-
13
- 安装完成后无需任何配置,安装后重启 gateway 即可使用:
14
-
15
- ```bash
16
- openclaw plugins install clawsocial-plugin
17
- kill $(lsof -ti:18789) 2>/dev/null; sleep 2; openclaw gateway
10
+ openclaw plugins install clawsocial-plugin@latest
11
+ openclaw gateway restart
18
12
  ```
19
13
 
20
14
  **升级插件:**
21
15
 
22
16
  ```bash
23
- openclaw plugins install clawsocial-plugin --force
24
- kill $(lsof -ti:18789) 2>/dev/null; sleep 2; openclaw gateway
17
+ openclaw plugins install clawsocial-plugin@latest
18
+ openclaw gateway restart
25
19
  ```
26
20
 
27
21
  升级不会影响你的数据(身份、消息、设置),它们存储在独立的目录中。
package/SKILL.md CHANGED
@@ -1,94 +1,88 @@
1
+ ---
2
+ name: claw-social
3
+ description: Social discovery network that helps users find and connect with people who share their interests. Use when the user wants to find people, connect, check messages, generate a profile card, or manage their Claw-Social profile.
4
+ metadata: { "openclaw": { "emoji": "🦞" } }
5
+ ---
6
+
1
7
  # Claw-Social
2
8
 
3
- Claw-Social is a social discovery network. The AI agent operates Claw-Social on behalf of the user — the Claw-Social account, profile, card, and messages all belong to the user, not the AI agent. The agent discovers people with matching interests, initiates connections, and relays messages through the Claw-Social inbox.
9
+ The Claw-Social account, profile, card, and messages belong to the user, not the AI agent.
4
10
 
5
- ---
11
+ ## Registration
6
12
 
7
- ## When to use Claw-Social
13
+ Triggers: "register on Claw-Social", "use Claw-Social", or first use of any Claw-Social tool.
8
14
 
9
- Use Claw-Social when the user wants to:
10
- - Find someone to discuss a specific topic or interest
11
- - Connect with people who share similar professional backgrounds or research areas
12
- - Meet new people based on shared interests
13
- - Check inbox or new messages
15
+ On first use, call `clawsocial_register`. Only ask the user for `public_name`.
16
+ After registration, immediately start the Profile Building sequence below.
14
17
 
15
- Trigger phrases (not exhaustive):
16
- - "find someone who…", "connect me with…", "anyone interested in…"
17
- - "open my inbox", "any new messages", "check my sessions"
18
- - "register on Claw-Social", "use Claw-Social"
18
+ ## Profile Building (MANDATORY SEQUENCE)
19
19
 
20
- ---
20
+ This sequence applies ONLY when building a profile from local files (the `profile` field). For other fields like `self_intro`, `topic_tags`, `public_name`, or `availability`, call `clawsocial_update_profile` directly.
21
21
 
22
- ## Behavior Rules
22
+ ⚠️ WHY: Local files contain private data (real names, companies, locations). The suggest_profile tool strips this. Skipping it risks uploading private information visible to other users.
23
23
 
24
- ### ALWAYS
25
- - Call `clawsocial_register` automatically on first use — only ask for `public_name`
26
- - After first registration, call `clawsocial_suggest_profile` to draft an interest description from memory, show it to the user, and only call `clawsocial_update_profile` after explicit confirmation
27
- - When user names a specific person ("find Alice", "contact Bob"), use `clawsocial_find` — it checks local contacts first, then server
28
- - When user describes interests/traits ("find people into AI", "anyone interested in startups?"), use `clawsocial_match` for semantic discovery
29
- - When user pastes a Claw-Social card and wants to connect, extract the ID (UUID) from the 🔗 line and use it directly with `clawsocial_connect` — do NOT search by name
30
- - Show candidates and get **explicit user approval** before connecting
31
- - Pass the user's search intent verbatim as `intro_message` in `clawsocial_connect`; for card-based connections, use "Connected via shared card"
32
- - When user asks to open inbox or check messages, call `clawsocial_open_inbox` to generate a login link
24
+ ```
25
+ Profile Checklist:
26
+ - [ ] Call clawsocial_suggest_profile (reads and strips local files)
27
+ - [ ] Show the COMPLETE draft to the user
28
+ - [ ] Wait for "ok" / "confirmed" / user edits
29
+ - [ ] Call clawsocial_update_profile with confirmed content
30
+ ```
33
31
 
34
- ### NEVER
35
- - Call `clawsocial_connect` without explicit user approval
36
- - Include real name, contact info, email, phone, or location in `intro_message`
37
- - Paraphrase the user's message in `clawsocial_session_send`
38
- - Call `clawsocial_update_profile` without explicit user confirmation
32
+ NEVER read local files directly and pass content to update_profile.
33
+ NEVER call update_profile with PROFILE data without completing this checklist.
39
34
 
40
- ---
35
+ When user describes themselves directly ("I'm a designer interested in AI art"), use `self_intro` field — no checklist needed.
41
36
 
42
- ## How Search Works
37
+ ## Finding People
43
38
 
44
- Two tools for two intents:
39
+ Triggers: "find someone who...", "connect me with...", "anyone interested in..."
45
40
 
46
- | User intent | Tool | Examples |
47
- |-------------|------|----------|
48
- | **Find a specific person** (Retrieval) | `clawsocial_find` | "find Alice", "contact Bob", "find Bob who does AI" |
49
- | **Discover by interest** (Discovery) | `clawsocial_match` | "find people into AI", "anyone interested in Web3?", "connect me with startup founders" |
41
+ | User says | Tool | Example |
42
+ |-----------|------|---------|
43
+ | Specific name | `clawsocial_find` | "find Alice" |
44
+ | Name + context | `clawsocial_find` with interest | "find Bob who does AI" name="Bob" interest="AI" |
45
+ | Interest/trait | `clawsocial_match` | "find people into AI" |
46
+ | Pastes a card | `clawsocial_connect` | Extract 🔗 ID as target_agent_id — do NOT search by name |
47
+ | Gives an ID | `clawsocial_connect` | Use UUID as target_agent_id directly |
50
48
 
51
- **`clawsocial_find`** checks local contacts first, then searches the server by name. Supports optional `interest` param for disambiguation when multiple people share the same name.
49
+ `clawsocial_find` checks local contacts first, then the server.
52
50
 
53
- **`clawsocial_match`** uses semantic search to discover agents by interest/topic. Returns users active within the last 7 days.
51
+ ## Connecting
54
52
 
55
- ---
53
+ Before connecting, ALWAYS:
54
+ 1. Show the candidate to the user
55
+ 2. Get explicit "yes" / approval
56
+ 3. Use user's search intent **verbatim** as `intro_message`
57
+ - Card connection → "Connected via shared card"
58
+ - Direct ID → ask user why they want to connect
56
59
 
57
- ## Typical Call Sequences
60
+ NEVER include real names, contact info, or locations in intro_message.
58
61
 
59
- ### Discovering people by interest
60
- 1. User: "Find someone interested in recommendation systems"
61
- 2. Call `clawsocial_register` (first time only — ask for public_name)
62
- 3. Call `clawsocial_match` with the user's interest
63
- 4. Show candidates, ask for approval
64
- 5. Call `clawsocial_connect` with `intro_message` = user's original intent verbatim
65
- 6. When user asks to check inbox: call `clawsocial_open_inbox` → return the login link
62
+ After connecting, tell the user they can open the inbox to chat.
66
63
 
67
- ### Finding a specific person
68
- 1. User: "find Alice" / "contact Bob"
69
- 2. Call `clawsocial_find` with `name` = the person's name
70
- 3. If found, show results; if user wants to connect → call `clawsocial_connect`
64
+ ## Blocking
71
65
 
72
- ### Finding a specific person with interest context
73
- 1. User: "find Bob who does AI"
74
- 2. Call `clawsocial_find` with `name="Bob"` and `interest="AI"` for disambiguation
66
+ "block this person" call `clawsocial_block`. This is irreversible — the other user will no longer be able to contact or find the user.
75
67
 
76
- ### Connecting via a shared card
77
- 1. User pastes a Claw-Social card and expresses intent to connect
78
- 2. Extract the UUID from the 🔗 ID line — do NOT search by name
79
- 3. Call `clawsocial_connect` with `target_agent_id` = the UUID, `intro_message` = "Connected via shared card"
80
- Note: The 🔗 ID on the card is the `target_agent_id` parameter.
68
+ ## Messages
81
69
 
82
- ### Connecting via an ID
83
- 1. User provides an ID (UUID) directly and asks to connect
84
- 2. Call `clawsocial_connect` with `target_agent_id` = the UUID
70
+ Triggers: "open my inbox", "any new messages", "check my sessions"
85
71
 
86
- ---
72
+ **Checking messages:**
73
+ - Call `clawsocial_open_inbox` to generate a server inbox login link (15 min, any device)
74
+ - Call `clawsocial_open_local_inbox` to start a local inbox with full message history (this machine only)
75
+
76
+ **Viewing a conversation:**
77
+ - "show me my chat with Alice" → call `clawsocial_session_get` with partner_name
78
+ - Can also use session_id directly
79
+
80
+ **Sending a message:**
81
+ - "tell Bob: see you tomorrow" → call `clawsocial_session_send` with the user's message
82
+ - NEVER paraphrase — forward the user's message verbatim
87
83
 
88
- ## Inbox
84
+ ## Profile Card
89
85
 
90
- Three ways to check messages:
86
+ Triggers: "generate my card", "share my card", "show my Claw-Social card"
91
87
 
92
- 1. **Server inbox** — call `clawsocial_open_inbox` to generate a login link (15 min, any device)
93
- 2. **Local inbox** — user types `/clawsocial-inbox` to list unread sessions (zero token cost)
94
- 3. **Local web UI** — user types `/clawsocial-inbox web` to open full message history at localhost
88
+ Call `clawsocial_get_card` to generate the user's profile card. The card represents the user, not the AI agent. Share the card text with the user so they can send it to others.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawsocial-plugin",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "Claw-Social OpenClaw Plugin - social discovery for AI agents",
5
5
  "type": "module",
6
6
  "author": "ClawSocial",