grix-connector 3.1.13 → 3.1.14

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.
Files changed (73) hide show
  1. package/README.md +241 -241
  2. package/dist/default-skills/grix-access-control/SKILL.md +31 -31
  3. package/dist/default-skills/grix-admin/SKILL.md +35 -35
  4. package/dist/default-skills/grix-agent-dispatch/SKILL.md +89 -89
  5. package/dist/default-skills/grix-chat-state/SKILL.md +56 -56
  6. package/dist/default-skills/grix-egg/SKILL.md +90 -90
  7. package/dist/default-skills/grix-group/SKILL.md +35 -35
  8. package/dist/default-skills/grix-owner-relay/SKILL.md +66 -66
  9. package/dist/default-skills/grix-query/SKILL.md +38 -38
  10. package/dist/default-skills/message-send/SKILL.md +36 -36
  11. package/dist/default-skills/message-unsend/SKILL.md +27 -27
  12. package/dist/default-skills/tailnet-file-share/SKILL.md +65 -65
  13. package/dist/grix.js +0 -0
  14. package/dist/service/platform-adapter.js +59 -16
  15. package/openclaw-plugin/skills/grix-admin/SKILL.md +202 -202
  16. package/openclaw-plugin/skills/grix-admin/references/api-contract.md +210 -210
  17. package/openclaw-plugin/skills/grix-egg/SKILL.md +81 -81
  18. package/openclaw-plugin/skills/grix-egg/references/api-contract.md +40 -40
  19. package/openclaw-plugin/skills/grix-group/SKILL.md +164 -164
  20. package/openclaw-plugin/skills/grix-group/references/api-contract.md +97 -97
  21. package/openclaw-plugin/skills/grix-query/SKILL.md +247 -247
  22. package/openclaw-plugin/skills/grix-register/SKILL.md +86 -86
  23. package/openclaw-plugin/skills/grix-register/references/api-contract.md +76 -76
  24. package/openclaw-plugin/skills/grix-register/references/grix-concepts.md +26 -26
  25. package/openclaw-plugin/skills/grix-register/references/handoff-contract.md +24 -24
  26. package/openclaw-plugin/skills/grix-register/references/openclaw-setup.md +6 -6
  27. package/openclaw-plugin/skills/grix-register/references/user-replies.md +25 -25
  28. package/openclaw-plugin/skills/grix-update/SKILL.md +310 -310
  29. package/openclaw-plugin/skills/grix-update/references/cron-setup.md +56 -56
  30. package/openclaw-plugin/skills/grix-update/references/update-contract.md +149 -149
  31. package/openclaw-plugin/skills/message-send/SKILL.md +197 -197
  32. package/openclaw-plugin/skills/message-unsend/SKILL.md +186 -186
  33. package/openclaw-plugin/skills/message-unsend/flowchart.mermaid +27 -27
  34. package/openclaw-plugin/skills/openclaw-memory-setup/SKILL.md +282 -282
  35. package/openclaw-plugin/skills/openclaw-memory-setup/references/case-study-macpro.md +52 -52
  36. package/openclaw-plugin/skills/openclaw-memory-setup/references/host-readiness.md +147 -147
  37. package/openclaw.plugin.json +24 -24
  38. package/package.json +121 -121
  39. package/scripts/install-guardian.mjs +27 -27
  40. package/scripts/install-guardian.sh +25 -25
  41. package/scripts/upgrade-guardian.sh +104 -104
  42. package/dist/adapter/claude/claude-bridge-server.js +0 -1
  43. package/dist/adapter/claude/claude-tools.js +0 -1
  44. package/dist/adapter/claude/claude-worker-client.js +0 -1
  45. package/dist/adapter/claude/mcp-http-launcher.js +0 -2
  46. package/dist/adapter/claude/result-timeout.js +0 -1
  47. package/dist/adapter/deepseek/deepseek-adapter.js +0 -6
  48. package/dist/adapter/deepseek/index.js +0 -1
  49. package/dist/adapter/qwen/index.js +0 -1
  50. package/dist/adapter/qwen/qwen-adapter.js +0 -4
  51. package/dist/aibot/client.js +0 -1
  52. package/dist/aibot/index.js +0 -1
  53. package/dist/aibot/types.js +0 -0
  54. package/dist/core/file-ops/handler.js +0 -1
  55. package/dist/core/file-ops/list-files.js +0 -1
  56. package/dist/core/file-ops/types.js +0 -0
  57. package/dist/default-skills/grix-task-status/SKILL.md +0 -36
  58. package/dist/log.js +0 -3
  59. package/dist/main.js +0 -31
  60. package/dist/mcp/stream-http/config.js +0 -1
  61. package/dist/mcp/stream-http/connection-binding.js +0 -1
  62. package/dist/mcp/stream-http/event-tool-executor.js +0 -1
  63. package/dist/mcp/stream-http/gateway.js +0 -1
  64. package/dist/mcp/stream-http/index.js +0 -1
  65. package/dist/mcp/stream-http/security.js +0 -1
  66. package/dist/mcp/stream-http/session-manager.js +0 -1
  67. package/dist/mcp/stream-http/tool-executor.js +0 -1
  68. package/dist/mcp/stream-http/tool-registry.js +0 -1
  69. package/dist/mcp/stream-http/tool-schemas.js +0 -1
  70. package/dist/session/index.js +0 -1
  71. package/dist/session/manager.js +0 -1
  72. package/dist/transport/index.js +0 -1
  73. package/dist/transport/json-rpc.js +0 -3
@@ -1,186 +1,186 @@
1
- ---
2
- name: message-unsend
3
- description: Silently recall/unsend already-sent messages. Supports current session and cross-session recall. After execution, must end immediately without replying any confirmation text. Trigger words: recall, unsend, delete message.
4
- ---
5
-
6
- # Message Unsend Skill
7
-
8
- This skill is used to recall already-sent messages through OpenClaw's `message` tool.
9
-
10
- ## Completion Contract (Highest Priority)
11
-
12
- Once this skill is entered, the final output must satisfy these 4 conditions:
13
-
14
- 1. **Execute recall action first**: when the target message can be located, recall the target message first
15
- 2. **Recall the command message**: the current "recall/unsend" command message itself must also be recalled
16
- 3. **Never send confirmation text**: do not send "recalled", "recall successful", "processing complete", or any other message
17
- 4. **Only `NO_REPLY` is allowed at the end**: the skill must end by returning `NO_REPLY`
18
-
19
- ## Permission Control (Strict)
20
-
21
- **This skill can only be executed when the current agent's owner, or an explicitly authorized operator in the current context, requests message recall.**
22
-
23
- ### Allowed Execution Cases
24
-
25
- - Owner says "recall / unsend / delete message" in a private chat
26
- - Owner says "recall / unsend / delete message" in a group chat
27
- - Owner or explicitly authorized operator quotes a message requesting recall
28
-
29
- ### Prohibited Execution Cases
30
-
31
- - A third-party user requests recall
32
- - Requester identity is unclear, cannot determine if they are the owner / authorized operator
33
-
34
- ### Handling Recall Requests from Others
35
-
36
- Completely ignore, do not reply, do not execute, directly `NO_REPLY`.
37
-
38
- ## Core Behavior: Completely Silent + Dual Recall
39
-
40
- When the owner or explicitly authorized operator sends a recall command, must execute in order:
41
-
42
- 1. Recall the target message
43
- 2. Recall the command message
44
- 3. Immediately return `NO_REPLY`
45
-
46
- Do not send any confirmation, error explanation, or supplementary notes.
47
-
48
- ## Two Recall Modes
49
-
50
- ### 1. Current Session Recall
51
-
52
- If the target message is in the current Grix session, `messageId` must be provided; `sessionId` / `to` / `topic` can be omitted.
53
-
54
- ```json
55
- {
56
- "action": "unsend",
57
- "channel": "grix",
58
- "accountId": "{accountId}",
59
- "messageId": "18889990099"
60
- }
61
- ```
62
-
63
- ### 2. Cross-Session Recall
64
-
65
- If the target message is not in the current session, prefer using `sessionId` to point to the target session. `to` and `topic` are only compatibility aliases; do not use them as the primary format.
66
-
67
- ```json
68
- {
69
- "action": "unsend",
70
- "channel": "grix",
71
- "accountId": "{accountId}",
72
- "messageId": "18889990099",
73
- "sessionId": "5c495569-ba1b-46ac-8070-5a1193a3f950"
74
- }
75
- ```
76
-
77
- ## Parameter Rules
78
-
79
- 1. `messageId` is required and must be a numeric string
80
- 2. In the current Grix session, `sessionId` / `to` / `topic` can be omitted
81
- 3. For cross-session, prefer passing the exact `sessionId`
82
- 4. `to` / `topic` are only compatibility aliases; if using `topic`, pass the bare `session_id`
83
- 5. Do not hardcode `accountId=default`; always use the current exact account ID
84
-
85
- ## Use Cases
86
-
87
- - User says "recall that last message" in the current conversation
88
- - Need to silently clean up a message just sent by mistake
89
- - Need to recall a known message cross-session
90
-
91
- ## Actual Call Examples
92
-
93
- ### Example 1: Current Session Recall
94
-
95
- ```json
96
- {
97
- "action": "unsend",
98
- "channel": "grix",
99
- "accountId": "{accountId}",
100
- "messageId": "2033329436849868800"
101
- }
102
- ```
103
-
104
- ### Example 2: Cross-Session Recall
105
-
106
- ```json
107
- {
108
- "action": "unsend",
109
- "channel": "grix",
110
- "accountId": "{accountId}",
111
- "messageId": "2033474284277993472",
112
- "sessionId": "5c495569-ba1b-46ac-8070-5a1193a3f950"
113
- }
114
- ```
115
-
116
- ## Important Notes
117
-
118
- 1. The Grix channel can recall messages sent by both agents and users
119
- 2. For cross-session, must first obtain the exact target session; do not pass user ID, agent ID, or legacy other-channel session formats
120
- 3. `messageId` can be obtained from inbound context, previous send results, or message records
121
- 4. The current command message will also be silently recalled if it can be located
122
-
123
- ## Error Handling
124
-
125
- Common errors are only for internal judgment; do not convert them into replies to the user:
126
-
127
- - `messageId` does not exist: directly `NO_REPLY`
128
- - Cannot resolve target session: directly `NO_REPLY`
129
- - Insufficient permissions: directly `NO_REPLY`
130
- - Message already deleted: directly `NO_REPLY`
131
-
132
- ## Grix Live Test Results (Updated 2026-03-16)
133
-
134
- **Status**: Available
135
-
136
- ### Example: Recall a message sent by the agent
137
-
138
- ```json
139
- {
140
- "action": "unsend",
141
- "channel": "grix",
142
- "accountId": "primary",
143
- "sessionId": "5c495569-ba1b-46ac-8070-5a1193a3f950",
144
- "messageId": "2033371385615093760"
145
- }
146
- ```
147
-
148
- Return:
149
-
150
- ```json
151
- {
152
- "ok": true,
153
- "deleted": true,
154
- "unsent": true,
155
- "messageId": "2033371385615093760",
156
- "sessionId": "5c495569-ba1b-46ac-8070-5a1193a3f950"
157
- }
158
- ```
159
-
160
- ### Example: Recall a message sent by the user
161
-
162
- ```json
163
- {
164
- "action": "unsend",
165
- "channel": "grix",
166
- "accountId": "primary",
167
- "sessionId": "5c495569-ba1b-46ac-8070-5a1193a3f950",
168
- "messageId": "2033474284277993472"
169
- }
170
- ```
171
-
172
- Return:
173
-
174
- ```json
175
- {
176
- "ok": true,
177
- "deleted": true,
178
- "unsent": true,
179
- "messageId": "2033474284277993472",
180
- "sessionId": "5c495569-ba1b-46ac-8070-5a1193a3f950"
181
- }
182
- ```
183
-
184
- ## Closing Requirement
185
-
186
- Once this skill is executed, the last line must be `NO_REPLY`. Do not leave any confirmation text.
1
+ ---
2
+ name: message-unsend
3
+ description: Silently recall/unsend already-sent messages. Supports current session and cross-session recall. After execution, must end immediately without replying any confirmation text. Trigger words: recall, unsend, delete message.
4
+ ---
5
+
6
+ # Message Unsend Skill
7
+
8
+ This skill is used to recall already-sent messages through OpenClaw's `message` tool.
9
+
10
+ ## Completion Contract (Highest Priority)
11
+
12
+ Once this skill is entered, the final output must satisfy these 4 conditions:
13
+
14
+ 1. **Execute recall action first**: when the target message can be located, recall the target message first
15
+ 2. **Recall the command message**: the current "recall/unsend" command message itself must also be recalled
16
+ 3. **Never send confirmation text**: do not send "recalled", "recall successful", "processing complete", or any other message
17
+ 4. **Only `NO_REPLY` is allowed at the end**: the skill must end by returning `NO_REPLY`
18
+
19
+ ## Permission Control (Strict)
20
+
21
+ **This skill can only be executed when the current agent's owner, or an explicitly authorized operator in the current context, requests message recall.**
22
+
23
+ ### Allowed Execution Cases
24
+
25
+ - Owner says "recall / unsend / delete message" in a private chat
26
+ - Owner says "recall / unsend / delete message" in a group chat
27
+ - Owner or explicitly authorized operator quotes a message requesting recall
28
+
29
+ ### Prohibited Execution Cases
30
+
31
+ - A third-party user requests recall
32
+ - Requester identity is unclear, cannot determine if they are the owner / authorized operator
33
+
34
+ ### Handling Recall Requests from Others
35
+
36
+ Completely ignore, do not reply, do not execute, directly `NO_REPLY`.
37
+
38
+ ## Core Behavior: Completely Silent + Dual Recall
39
+
40
+ When the owner or explicitly authorized operator sends a recall command, must execute in order:
41
+
42
+ 1. Recall the target message
43
+ 2. Recall the command message
44
+ 3. Immediately return `NO_REPLY`
45
+
46
+ Do not send any confirmation, error explanation, or supplementary notes.
47
+
48
+ ## Two Recall Modes
49
+
50
+ ### 1. Current Session Recall
51
+
52
+ If the target message is in the current Grix session, `messageId` must be provided; `sessionId` / `to` / `topic` can be omitted.
53
+
54
+ ```json
55
+ {
56
+ "action": "unsend",
57
+ "channel": "grix",
58
+ "accountId": "{accountId}",
59
+ "messageId": "18889990099"
60
+ }
61
+ ```
62
+
63
+ ### 2. Cross-Session Recall
64
+
65
+ If the target message is not in the current session, prefer using `sessionId` to point to the target session. `to` and `topic` are only compatibility aliases; do not use them as the primary format.
66
+
67
+ ```json
68
+ {
69
+ "action": "unsend",
70
+ "channel": "grix",
71
+ "accountId": "{accountId}",
72
+ "messageId": "18889990099",
73
+ "sessionId": "5c495569-ba1b-46ac-8070-5a1193a3f950"
74
+ }
75
+ ```
76
+
77
+ ## Parameter Rules
78
+
79
+ 1. `messageId` is required and must be a numeric string
80
+ 2. In the current Grix session, `sessionId` / `to` / `topic` can be omitted
81
+ 3. For cross-session, prefer passing the exact `sessionId`
82
+ 4. `to` / `topic` are only compatibility aliases; if using `topic`, pass the bare `session_id`
83
+ 5. Do not hardcode `accountId=default`; always use the current exact account ID
84
+
85
+ ## Use Cases
86
+
87
+ - User says "recall that last message" in the current conversation
88
+ - Need to silently clean up a message just sent by mistake
89
+ - Need to recall a known message cross-session
90
+
91
+ ## Actual Call Examples
92
+
93
+ ### Example 1: Current Session Recall
94
+
95
+ ```json
96
+ {
97
+ "action": "unsend",
98
+ "channel": "grix",
99
+ "accountId": "{accountId}",
100
+ "messageId": "2033329436849868800"
101
+ }
102
+ ```
103
+
104
+ ### Example 2: Cross-Session Recall
105
+
106
+ ```json
107
+ {
108
+ "action": "unsend",
109
+ "channel": "grix",
110
+ "accountId": "{accountId}",
111
+ "messageId": "2033474284277993472",
112
+ "sessionId": "5c495569-ba1b-46ac-8070-5a1193a3f950"
113
+ }
114
+ ```
115
+
116
+ ## Important Notes
117
+
118
+ 1. The Grix channel can recall messages sent by both agents and users
119
+ 2. For cross-session, must first obtain the exact target session; do not pass user ID, agent ID, or legacy other-channel session formats
120
+ 3. `messageId` can be obtained from inbound context, previous send results, or message records
121
+ 4. The current command message will also be silently recalled if it can be located
122
+
123
+ ## Error Handling
124
+
125
+ Common errors are only for internal judgment; do not convert them into replies to the user:
126
+
127
+ - `messageId` does not exist: directly `NO_REPLY`
128
+ - Cannot resolve target session: directly `NO_REPLY`
129
+ - Insufficient permissions: directly `NO_REPLY`
130
+ - Message already deleted: directly `NO_REPLY`
131
+
132
+ ## Grix Live Test Results (Updated 2026-03-16)
133
+
134
+ **Status**: Available
135
+
136
+ ### Example: Recall a message sent by the agent
137
+
138
+ ```json
139
+ {
140
+ "action": "unsend",
141
+ "channel": "grix",
142
+ "accountId": "primary",
143
+ "sessionId": "5c495569-ba1b-46ac-8070-5a1193a3f950",
144
+ "messageId": "2033371385615093760"
145
+ }
146
+ ```
147
+
148
+ Return:
149
+
150
+ ```json
151
+ {
152
+ "ok": true,
153
+ "deleted": true,
154
+ "unsent": true,
155
+ "messageId": "2033371385615093760",
156
+ "sessionId": "5c495569-ba1b-46ac-8070-5a1193a3f950"
157
+ }
158
+ ```
159
+
160
+ ### Example: Recall a message sent by the user
161
+
162
+ ```json
163
+ {
164
+ "action": "unsend",
165
+ "channel": "grix",
166
+ "accountId": "primary",
167
+ "sessionId": "5c495569-ba1b-46ac-8070-5a1193a3f950",
168
+ "messageId": "2033474284277993472"
169
+ }
170
+ ```
171
+
172
+ Return:
173
+
174
+ ```json
175
+ {
176
+ "ok": true,
177
+ "deleted": true,
178
+ "unsent": true,
179
+ "messageId": "2033474284277993472",
180
+ "sessionId": "5c495569-ba1b-46ac-8070-5a1193a3f950"
181
+ }
182
+ ```
183
+
184
+ ## Closing Requirement
185
+
186
+ Once this skill is executed, the last line must be `NO_REPLY`. Do not leave any confirmation text.
@@ -1,27 +1,27 @@
1
- ```mermaid
2
- flowchart TD
3
- Start([Recall request received]) --> CheckSender{Is requester the current agent's owner / authorized operator?}
4
- CheckSender -->|No or unclear| End1[Directly NO_REPLY]
5
- CheckSender -->|Yes| ResolveTarget{Can locate target message?}
6
-
7
- ResolveTarget -->|No| End2[Directly NO_REPLY]
8
- ResolveTarget -->|Yes| PrepareTarget[Prepare target message params<br/>action=unsend<br/>channel=grix<br/>accountId=current<br/>sessionId=target session or omit (current session)<br/>messageId=target message]
9
-
10
- PrepareTarget --> UnsendTarget[Execute target message recall]
11
- UnsendTarget --> TargetResult{Success or already deleted?}
12
- TargetResult -->|No| End3[Directly NO_REPLY]
13
- TargetResult -->|Yes| PrepareCommand[Prepare command message params<br/>action=unsend<br/>channel=grix<br/>accountId=current<br/>sessionId=current session (resolve if needed)<br/>messageId=current command message]
14
-
15
- PrepareCommand --> UnsendCommand[Execute command message recall]
16
- UnsendCommand --> End4[Return NO_REPLY]
17
-
18
- style Start fill:#e1f5e1
19
- style End1 fill:#ffe1e1
20
- style End2 fill:#ffe1e1
21
- style End3 fill:#ffe1e1
22
- style End4 fill:#e1f5e1
23
- style CheckSender fill:#fff4e1
24
- style ResolveTarget fill:#fff4e1
25
- style UnsendTarget fill:#e1f0ff
26
- style UnsendCommand fill:#e1f0ff
27
- ```
1
+ ```mermaid
2
+ flowchart TD
3
+ Start([Recall request received]) --> CheckSender{Is requester the current agent's owner / authorized operator?}
4
+ CheckSender -->|No or unclear| End1[Directly NO_REPLY]
5
+ CheckSender -->|Yes| ResolveTarget{Can locate target message?}
6
+
7
+ ResolveTarget -->|No| End2[Directly NO_REPLY]
8
+ ResolveTarget -->|Yes| PrepareTarget[Prepare target message params<br/>action=unsend<br/>channel=grix<br/>accountId=current<br/>sessionId=target session or omit (current session)<br/>messageId=target message]
9
+
10
+ PrepareTarget --> UnsendTarget[Execute target message recall]
11
+ UnsendTarget --> TargetResult{Success or already deleted?}
12
+ TargetResult -->|No| End3[Directly NO_REPLY]
13
+ TargetResult -->|Yes| PrepareCommand[Prepare command message params<br/>action=unsend<br/>channel=grix<br/>accountId=current<br/>sessionId=current session (resolve if needed)<br/>messageId=current command message]
14
+
15
+ PrepareCommand --> UnsendCommand[Execute command message recall]
16
+ UnsendCommand --> End4[Return NO_REPLY]
17
+
18
+ style Start fill:#e1f5e1
19
+ style End1 fill:#ffe1e1
20
+ style End2 fill:#ffe1e1
21
+ style End3 fill:#ffe1e1
22
+ style End4 fill:#e1f5e1
23
+ style CheckSender fill:#fff4e1
24
+ style ResolveTarget fill:#fff4e1
25
+ style UnsendTarget fill:#e1f0ff
26
+ style UnsendCommand fill:#e1f0ff
27
+ ```