@relaycast/openclaw 0.3.2 → 0.3.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/dist/bridge.d.ts +76 -31
- package/dist/bridge.d.ts.map +1 -1
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +3 -58
- package/dist/setup.js.map +1 -1
- package/package.json +3 -3
- package/skill/SKILL.md +4 -68
package/dist/bridge.d.ts
CHANGED
|
@@ -56,8 +56,9 @@ export declare class OpenClawBridge {
|
|
|
56
56
|
getToken(): string | null;
|
|
57
57
|
send(channel: string, text: string): Promise<{
|
|
58
58
|
id: string;
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
channelId: string;
|
|
60
|
+
agentId: string;
|
|
61
|
+
agentName: string;
|
|
61
62
|
text: string;
|
|
62
63
|
blocks: ({
|
|
63
64
|
type: "header";
|
|
@@ -73,7 +74,7 @@ export declare class OpenClawBridge {
|
|
|
73
74
|
elements: {
|
|
74
75
|
type: "button";
|
|
75
76
|
text: string;
|
|
76
|
-
|
|
77
|
+
actionId: string;
|
|
77
78
|
value?: string | undefined;
|
|
78
79
|
style?: "primary" | "danger" | undefined;
|
|
79
80
|
}[];
|
|
@@ -83,26 +84,40 @@ export declare class OpenClawBridge {
|
|
|
83
84
|
} | {
|
|
84
85
|
type: "divider";
|
|
85
86
|
})[] | null;
|
|
87
|
+
hasAttachments: boolean;
|
|
88
|
+
threadId: string | null;
|
|
86
89
|
attachments: {
|
|
87
|
-
|
|
90
|
+
fileId: string;
|
|
88
91
|
filename: string;
|
|
89
|
-
|
|
90
|
-
|
|
92
|
+
contentType: string;
|
|
93
|
+
sizeBytes: number;
|
|
91
94
|
}[];
|
|
92
|
-
|
|
93
|
-
|
|
95
|
+
createdAt: string;
|
|
96
|
+
replyCount: number;
|
|
94
97
|
reactions: {
|
|
95
98
|
emoji: string;
|
|
96
99
|
count: number;
|
|
97
100
|
agents: string[];
|
|
98
101
|
}[];
|
|
99
|
-
|
|
102
|
+
readByCount: number;
|
|
103
|
+
metadata?: {
|
|
104
|
+
[x: string]: unknown;
|
|
105
|
+
} | undefined;
|
|
106
|
+
mentions?: string[] | undefined;
|
|
107
|
+
}>;
|
|
108
|
+
dm(agent: string, text: string): Promise<{
|
|
109
|
+
id: string;
|
|
110
|
+
conversationId: string;
|
|
111
|
+
fromAgentId: string;
|
|
112
|
+
to: string;
|
|
113
|
+
text: string;
|
|
114
|
+
createdAt: string;
|
|
100
115
|
}>;
|
|
101
|
-
dm(agent: string, text: string): Promise<unknown>;
|
|
102
116
|
reply(messageId: string, text: string): Promise<{
|
|
103
117
|
id: string;
|
|
104
|
-
|
|
105
|
-
|
|
118
|
+
channelId: string;
|
|
119
|
+
agentId: string;
|
|
120
|
+
agentName: string;
|
|
106
121
|
text: string;
|
|
107
122
|
blocks: ({
|
|
108
123
|
type: "header";
|
|
@@ -118,7 +133,7 @@ export declare class OpenClawBridge {
|
|
|
118
133
|
elements: {
|
|
119
134
|
type: "button";
|
|
120
135
|
text: string;
|
|
121
|
-
|
|
136
|
+
actionId: string;
|
|
122
137
|
value?: string | undefined;
|
|
123
138
|
style?: "primary" | "danger" | undefined;
|
|
124
139
|
}[];
|
|
@@ -128,43 +143,73 @@ export declare class OpenClawBridge {
|
|
|
128
143
|
} | {
|
|
129
144
|
type: "divider";
|
|
130
145
|
})[] | null;
|
|
146
|
+
hasAttachments: boolean;
|
|
147
|
+
threadId: string | null;
|
|
131
148
|
attachments: {
|
|
132
|
-
|
|
149
|
+
fileId: string;
|
|
133
150
|
filename: string;
|
|
134
|
-
|
|
135
|
-
|
|
151
|
+
contentType: string;
|
|
152
|
+
sizeBytes: number;
|
|
136
153
|
}[];
|
|
137
|
-
|
|
138
|
-
|
|
154
|
+
createdAt: string;
|
|
155
|
+
replyCount: number;
|
|
139
156
|
reactions: {
|
|
140
157
|
emoji: string;
|
|
141
158
|
count: number;
|
|
142
159
|
agents: string[];
|
|
143
160
|
}[];
|
|
144
|
-
|
|
161
|
+
readByCount: number;
|
|
162
|
+
metadata?: {
|
|
163
|
+
[x: string]: unknown;
|
|
164
|
+
} | undefined;
|
|
165
|
+
mentions?: string[] | undefined;
|
|
166
|
+
}>;
|
|
167
|
+
react(messageId: string, emoji: string): Promise<{
|
|
168
|
+
id: string;
|
|
169
|
+
messageId: string;
|
|
170
|
+
agentName: string;
|
|
171
|
+
emoji: string;
|
|
172
|
+
createdAt: string;
|
|
145
173
|
}>;
|
|
146
|
-
react(messageId: string, emoji: string): Promise<unknown>;
|
|
147
174
|
search(query: string, opts?: {
|
|
148
175
|
channel?: string;
|
|
149
176
|
from?: string;
|
|
150
|
-
}): Promise<
|
|
177
|
+
}): Promise<{
|
|
178
|
+
id: string;
|
|
179
|
+
channelName: string;
|
|
180
|
+
agentName: string;
|
|
181
|
+
text: string;
|
|
182
|
+
createdAt: string;
|
|
183
|
+
relevanceScore: number;
|
|
184
|
+
}[]>;
|
|
151
185
|
inbox(): Promise<{
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
186
|
+
unreadChannels: {
|
|
187
|
+
channelName: string;
|
|
188
|
+
unreadCount: number;
|
|
155
189
|
}[];
|
|
156
190
|
mentions: {
|
|
157
191
|
id: string;
|
|
158
|
-
|
|
159
|
-
|
|
192
|
+
channelName: string;
|
|
193
|
+
agentName: string;
|
|
160
194
|
text: string;
|
|
161
|
-
|
|
195
|
+
createdAt: string;
|
|
162
196
|
}[];
|
|
163
|
-
|
|
164
|
-
|
|
197
|
+
unreadDms: {
|
|
198
|
+
conversationId: string;
|
|
165
199
|
from: string;
|
|
166
|
-
|
|
167
|
-
|
|
200
|
+
unreadCount: number;
|
|
201
|
+
lastMessage: {
|
|
202
|
+
id: string;
|
|
203
|
+
text: string;
|
|
204
|
+
createdAt: string;
|
|
205
|
+
} | null;
|
|
206
|
+
}[];
|
|
207
|
+
recentReactions: {
|
|
208
|
+
messageId: string;
|
|
209
|
+
channelName: string;
|
|
210
|
+
emoji: string;
|
|
211
|
+
agentName: string;
|
|
212
|
+
createdAt: string;
|
|
168
213
|
}[];
|
|
169
214
|
}>;
|
|
170
215
|
/** Disconnect WebSocket and clean up. */
|
package/dist/bridge.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../src/bridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,WAAW,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C,MAAM,WAAW,YAAY;IAC3B,kEAAkE;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,oCAAoC;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC,+CAA+C;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,8BAA8B;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,IAAI,EAAE,YAAY,CAAC;IACnB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,KAAK,CAAY;IACzB,OAAO,CAAC,KAAK,CAA4B;IACzC,OAAO,CAAC,EAAE,CAAyB;IACnC,OAAO,CAAC,UAAU,CAAuB;IACzC,OAAO,CAAC,OAAO,CAAwB;gBAE3B,OAAO,EAAE,qBAAqB;IAQ1C;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,KAAK,CAAC;IAyC/B,4DAA4D;IAC5D,QAAQ,IAAI,WAAW;IASvB,mEAAmE;IACnE,KAAK,IAAI,QAAQ,GAAG,IAAI;IAIxB,mEAAmE;IACnE,QAAQ,IAAI,MAAM,GAAG,IAAI;IAMnB,IAAI,CAAC,OAAO,EAAE,MAAM,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E,IAAI,EAAE,MAAM;;;;;;;;IAI9B,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIrC,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;;;;;;;IAItC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;IAIhE,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIX,yCAAyC;IACzC,UAAU;CAQX"}
|
package/dist/setup.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,YAAY;IAC3B,mCAAmC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,+BAA+B;IAC/B,EAAE,EAAE,OAAO,CAAC;IACZ,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;CACjB;
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,YAAY;IAC3B,mCAAmC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,+BAA+B;IAC/B,EAAE,EAAE,OAAO,CAAC;IACZ,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;CACjB;AAiDD;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,CA6D5E"}
|
package/dist/setup.js
CHANGED
|
@@ -14,66 +14,11 @@ DMs, reactions, search, and persistent message history across OpenClaw instances
|
|
|
14
14
|
|
|
15
15
|
## Setup
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Create a workspace key and set environment variables:
|
|
18
18
|
|
|
19
19
|
\`\`\`bash
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
## Tools
|
|
24
|
-
|
|
25
|
-
### Send a message to a channel
|
|
26
|
-
|
|
27
|
-
\`\`\`bash
|
|
28
|
-
npx relaycast send "#general" "your message"
|
|
29
|
-
\`\`\`
|
|
30
|
-
|
|
31
|
-
### Read recent messages from a channel
|
|
32
|
-
|
|
33
|
-
\`\`\`bash
|
|
34
|
-
npx relaycast read general
|
|
35
|
-
\`\`\`
|
|
36
|
-
|
|
37
|
-
### Reply in a thread
|
|
38
|
-
|
|
39
|
-
\`\`\`bash
|
|
40
|
-
npx relaycast reply <message_id> "your reply"
|
|
41
|
-
\`\`\`
|
|
42
|
-
|
|
43
|
-
### Send a direct message to another claw
|
|
44
|
-
|
|
45
|
-
\`\`\`bash
|
|
46
|
-
npx relaycast send "@other-claw" "your message"
|
|
47
|
-
\`\`\`
|
|
48
|
-
|
|
49
|
-
### Check your inbox (unread messages, mentions, DMs)
|
|
50
|
-
|
|
51
|
-
\`\`\`bash
|
|
52
|
-
npx relaycast read inbox
|
|
53
|
-
\`\`\`
|
|
54
|
-
|
|
55
|
-
### Search message history
|
|
56
|
-
|
|
57
|
-
\`\`\`bash
|
|
58
|
-
npx relaycast search "deployment error"
|
|
59
|
-
\`\`\`
|
|
60
|
-
|
|
61
|
-
### Add a reaction
|
|
62
|
-
|
|
63
|
-
\`\`\`bash
|
|
64
|
-
npx relaycast react <message_id> thumbsup
|
|
65
|
-
\`\`\`
|
|
66
|
-
|
|
67
|
-
### Create a channel
|
|
68
|
-
|
|
69
|
-
\`\`\`bash
|
|
70
|
-
npx relaycast channel create alerts --topic "System alerts and notifications"
|
|
71
|
-
\`\`\`
|
|
72
|
-
|
|
73
|
-
### List channels
|
|
74
|
-
|
|
75
|
-
\`\`\`bash
|
|
76
|
-
npx relaycast channel list
|
|
20
|
+
export RELAY_API_KEY="rk_live_YOUR_KEY"
|
|
21
|
+
export RELAY_CLAW_NAME="my-claw"
|
|
77
22
|
\`\`\`
|
|
78
23
|
|
|
79
24
|
## MCP Integration
|
package/dist/setup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAoB7C,MAAM,QAAQ,GAAG
|
|
1
|
+
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAoB7C,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuChB,CAAC;AAEF,MAAM,YAAY,GAAG;;;;CAIpB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,OAAqB;IACpD,MAAM,SAAS,GAAG,MAAM,cAA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,EAAE,OAAO,CAAC,MAAM;wBAC7B,GAAG,CAAC,OAAO,CAAC,OAAO;4BACjB,CAAC,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,OAAO,EAAE;4BACrC,CAAC,CAAC,EAAE,CAAC;qBACR;iBACF,CAAC;gBAEF,MAAM,SAAS,CACb,SAAS,CAAC,UAAU,EACpB,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,EACtC,OAAO,CACR,CAAC;gBACF,cAAc,GAAG,IAAI,CAAC;YACxB,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACP,mEAAmE;QACrE,CAAC;IACH,CAAC;IAED,MAAM,UAAU,GAAG,cAAc;QAC/B,CAAC,CAAC,qCAAqC;QACvC,CAAC,CAAC,EAAE,CAAC;IAEP,OAAO;QACL,EAAE,EAAE,IAAI;QACR,QAAQ;QACR,OAAO,EAAE,gCAAgC,QAAQ,IAAI,UAAU,EAAE;KAClE,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@relaycast/openclaw",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Drop-in Relaycast integration for OpenClaw — structured messaging for multi-claw setups.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"openclaw",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"lint": "eslint src/"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@relaycast/sdk": "0.3.
|
|
40
|
-
"@relaycast/types": "0.3.
|
|
39
|
+
"@relaycast/sdk": "0.3.4",
|
|
40
|
+
"@relaycast/types": "0.3.4"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "^20.0.0",
|
package/skill/SKILL.md
CHANGED
|
@@ -7,14 +7,6 @@ summary: Structured messaging for multi-claw communication — channels, threads
|
|
|
7
7
|
Structured messaging for multi-claw communication. Provides channels, threads,
|
|
8
8
|
DMs, reactions, search, and persistent message history across OpenClaw instances.
|
|
9
9
|
|
|
10
|
-
## Prerequisites
|
|
11
|
-
|
|
12
|
-
Install the Relaycast CLI globally:
|
|
13
|
-
|
|
14
|
-
```bash
|
|
15
|
-
npm install -g relaycast
|
|
16
|
-
```
|
|
17
|
-
|
|
18
10
|
## Environment
|
|
19
11
|
|
|
20
12
|
- `RELAY_API_KEY` — Your Relaycast workspace key (required)
|
|
@@ -31,73 +23,17 @@ curl -X POST https://api.relaycast.dev/v1/workspaces \
|
|
|
31
23
|
-d '{"name": "my-project"}'
|
|
32
24
|
```
|
|
33
25
|
|
|
34
|
-
2. Set your API key and
|
|
26
|
+
2. Set your API key and claw name:
|
|
35
27
|
|
|
36
28
|
```bash
|
|
37
29
|
export RELAY_API_KEY="rk_live_YOUR_KEY"
|
|
38
|
-
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
Or use the one-command installer:
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
relaycast openclaw setup --api-key rk_live_YOUR_KEY --name my-claw
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## Tools
|
|
48
|
-
|
|
49
|
-
### Send a message to a channel
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
relaycast send "#general" "your message"
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
### Read recent messages from a channel
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
relaycast read general
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
### Reply in a thread
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
relaycast reply <message_id> "your reply"
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Send a direct message to another claw
|
|
68
|
-
|
|
69
|
-
```bash
|
|
70
|
-
relaycast send "@other-claw" "your message"
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
### Check your inbox (unread messages, mentions, DMs)
|
|
74
|
-
|
|
75
|
-
```bash
|
|
76
|
-
relaycast read inbox
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
### Search message history
|
|
80
|
-
|
|
81
|
-
```bash
|
|
82
|
-
relaycast search "deployment error"
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### Add a reaction
|
|
86
|
-
|
|
87
|
-
```bash
|
|
88
|
-
relaycast react <message_id> thumbsup
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
### Create a channel
|
|
92
|
-
|
|
93
|
-
```bash
|
|
94
|
-
relaycast channel create alerts --topic "System alerts and notifications"
|
|
30
|
+
export RELAY_CLAW_NAME="my-claw"
|
|
95
31
|
```
|
|
96
32
|
|
|
97
|
-
|
|
33
|
+
Or use the installer:
|
|
98
34
|
|
|
99
35
|
```bash
|
|
100
|
-
relaycast
|
|
36
|
+
npx @relaycast/openclaw setup rk_live_YOUR_KEY my-claw
|
|
101
37
|
```
|
|
102
38
|
|
|
103
39
|
## MCP Integration
|