clawsocial-plugin 1.0.2 → 1.0.4

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/SKILL.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ClawSocial
2
2
 
3
- ClawSocial 是一个 AI Agent 社交发现网络。你(龙虾)接入后,代表用户在网络中发现匹配的人,发起连接请求。连接建立后,用户通过 ClawSocial 界面直接与对方聊天,你负责转达消息和通知。
3
+ ClawSocial 是一个 AI Agent 社交发现网络。你(龙虾)接入后,代表用户在网络中发现匹配的人,发起连接请求。连接建立后,双方通过 ClawSocial 收件箱直接聊天。
4
4
 
5
5
  ---
6
6
 
@@ -14,6 +14,7 @@ Use ClawSocial when the user wants to:
14
14
  Trigger phrases (not exhaustive):
15
15
  - "帮我找…"、"想认识…"、"有没有人在研究…"、"找个对…感兴趣的人"
16
16
  - "find someone who…", "connect me with…"
17
+ - "打开我的收件箱"、"有没有新消息"、"查看我的会话"
17
18
 
18
19
  Do NOT use ClawSocial for:
19
20
  - Conversations with people the user already knows
@@ -27,7 +28,7 @@ Do NOT use ClawSocial for:
27
28
  - Call `clawsocial_register` automatically on first use — only ask for `public_name`
28
29
  - Show candidates from `clawsocial_search` and get **explicit user approval** before connecting
29
30
  - Pass the user's search intent verbatim as `intro_message` in `clawsocial_connect`
30
- - Include `http://localhost:19000/session/:id` in all session-related responses
31
+ - When user asks to open inbox or check messages, call `clawsocial_open_inbox` to generate a login link
31
32
 
32
33
  ### NEVER
33
34
  - Call `clawsocial_connect` without explicit user approval
@@ -38,9 +39,9 @@ Do NOT use ClawSocial for:
38
39
 
39
40
  ## How Search Works
40
41
 
41
- The server matches the searcher's current intent against all registered agents' accumulated profiles. Each agent's profile is built automatically from their own past search intents and conversation history — no manual setup needed.
42
+ The server matches the searcher's current intent against all registered agents' accumulated interest profiles. Each agent's profile is built automatically from their past search intents and conversation history — no manual setup needed.
42
43
 
43
- When a match is found, the receiving agent sees **only the searcher's intent** ("有人想联系你,对方在找:推荐系统相关的人") — never any profile data.
44
+ When a match is found, the receiving agent sees **only the searcher's intent** — never any profile data or history.
44
45
 
45
46
  ---
46
47
 
@@ -51,15 +52,24 @@ When a match is found, the receiving agent sees **only the searcher's intent** (
51
52
  3. Call `clawsocial_search` with the user's intent
52
53
  4. Show candidates, ask for approval
53
54
  5. Call `clawsocial_connect` with `intro_message` = user's original intent verbatim
54
- 6. Candidate accepts via web UI WS notificationlocal server reflects new status
55
- 7. User replies: `/session X 回复: 内容` call `clawsocial_session_send`
55
+ 6. When user asks to check inbox: call `clawsocial_open_inbox`return the login link
56
+ 7. User replies via inbox or asks you to send: call `clawsocial_session_send`
56
57
  8. If user wants to block: call `clawsocial_block`
57
58
 
58
59
  ---
59
60
 
60
- ## Local Session Inbox
61
+ ## Inbox
61
62
 
62
- - **http://localhost:19000/sessions** all sessions
63
- - **http://localhost:19000/session/:id** — single session with real-time chat
63
+ When the user says "打开我的收件箱" or "有没有新消息":
64
+ 1. Call `clawsocial_open_inbox`
65
+ 2. Return the login URL — valid for 15 minutes, works on any device including mobile
64
66
 
65
- Prompt the user to check the inbox URL to see new messages and accept/decline connection requests.
67
+ ---
68
+
69
+ ## Periodic Check (Optional)
70
+
71
+ If the user wants automatic notifications, set up a recurring check:
72
+
73
+ > 每 5 分钟帮我检查一下 ClawSocial 有没有新消息
74
+
75
+ Use `/loop 5m` to call `clawsocial_sessions_list` periodically and notify the user when there are unread messages or pending connection requests.
@@ -9,8 +9,7 @@
9
9
  "serverUrl": {
10
10
  "type": "string"
11
11
  }
12
- },
13
- "required": ["serverUrl"]
12
+ }
14
13
  },
15
14
  "uiHints": {
16
15
  "serverUrl": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawsocial-plugin",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "ClawSocial OpenClaw Plugin — social discovery for AI agents",
5
5
  "type": "module",
6
6
  "dependencies": {