@shadowob/openclaw-shadowob 1.1.1 → 1.1.3-dev.251
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/chunk-2R7AKKRH.js +1959 -0
- package/dist/chunk-NBNZ7NVR.js +175 -0
- package/dist/index.js +1011 -4
- package/dist/monitor-ZZHGWMZF.js +16 -0
- package/dist/setup-entry.js +3 -3
- package/openclaw.plugin.json +118 -0
- package/package.json +4 -3
- package/skills/shadowob/SKILL.md +37 -57
- package/dist/chunk-JGLINAN5.js +0 -1064
- package/dist/chunk-LUNQKMJD.js +0 -585
- package/dist/monitor-L5CUPMSN.js +0 -6
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
formatSlashCommandPrompt,
|
|
3
|
+
matchShadowSlashCommand,
|
|
4
|
+
monitorShadowProvider,
|
|
5
|
+
normalizeShadowSlashCommands,
|
|
6
|
+
resolveShadowAgentIdFromConfig,
|
|
7
|
+
shouldCatchUpShadowMessage
|
|
8
|
+
} from "./chunk-2R7AKKRH.js";
|
|
9
|
+
export {
|
|
10
|
+
formatSlashCommandPrompt,
|
|
11
|
+
matchShadowSlashCommand,
|
|
12
|
+
monitorShadowProvider,
|
|
13
|
+
normalizeShadowSlashCommands,
|
|
14
|
+
resolveShadowAgentIdFromConfig,
|
|
15
|
+
shouldCatchUpShadowMessage
|
|
16
|
+
};
|
package/dist/setup-entry.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
2
|
+
shadowSetupPlugin
|
|
3
|
+
} from "./chunk-NBNZ7NVR.js";
|
|
4
4
|
|
|
5
5
|
// setup-entry.ts
|
|
6
6
|
import { defineSetupPluginEntry } from "openclaw/plugin-sdk/core";
|
|
7
|
-
var setup_entry_default = defineSetupPluginEntry(
|
|
7
|
+
var setup_entry_default = defineSetupPluginEntry(shadowSetupPlugin);
|
|
8
8
|
export {
|
|
9
9
|
setup_entry_default as default
|
|
10
10
|
};
|
package/openclaw.plugin.json
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
"name": "ShadowOwnBuddy",
|
|
4
4
|
"description": "Shadow server channel plugin — enables AI agents to chat in Shadow channels with threads, reactions, and media support",
|
|
5
5
|
"channels": ["shadowob"],
|
|
6
|
+
"channelEnvVars": {
|
|
7
|
+
"shadowob": ["SHADOW_SERVER_URL", "SHADOW_AGENT_TOKEN"]
|
|
8
|
+
},
|
|
6
9
|
"skills": ["skills/shadowob"],
|
|
7
10
|
"uiHints": {
|
|
8
11
|
"token": {
|
|
@@ -30,5 +33,120 @@
|
|
|
30
33
|
}
|
|
31
34
|
}
|
|
32
35
|
}
|
|
36
|
+
},
|
|
37
|
+
"channelConfigs": {
|
|
38
|
+
"shadowob": {
|
|
39
|
+
"label": "ShadowOwnBuddy",
|
|
40
|
+
"description": "Shadow server channel integration — chat with AI agents in Shadow channels",
|
|
41
|
+
"schema": {
|
|
42
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
43
|
+
"type": "object",
|
|
44
|
+
"additionalProperties": true,
|
|
45
|
+
"properties": {
|
|
46
|
+
"name": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"enabled": {
|
|
50
|
+
"type": "boolean"
|
|
51
|
+
},
|
|
52
|
+
"token": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"serverUrl": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
"buddyId": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
"buddyName": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
"buddyDescription": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
"replyToMode": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"enum": ["first", "all", "off"]
|
|
70
|
+
},
|
|
71
|
+
"capabilities": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"additionalProperties": true,
|
|
74
|
+
"properties": {
|
|
75
|
+
"inlineButtons": {
|
|
76
|
+
"anyOf": [
|
|
77
|
+
{
|
|
78
|
+
"type": "string",
|
|
79
|
+
"enum": ["off", "dm", "group", "all", "allowlist"]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"type": "boolean"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
"interactive": {
|
|
87
|
+
"type": "boolean"
|
|
88
|
+
},
|
|
89
|
+
"forms": {
|
|
90
|
+
"type": "boolean"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"accountAgentMap": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"additionalProperties": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"accounts": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"additionalProperties": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"additionalProperties": true,
|
|
105
|
+
"properties": {
|
|
106
|
+
"enabled": {
|
|
107
|
+
"type": "boolean"
|
|
108
|
+
},
|
|
109
|
+
"token": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
"serverUrl": {
|
|
113
|
+
"type": "string"
|
|
114
|
+
},
|
|
115
|
+
"buddyId": {
|
|
116
|
+
"type": "string"
|
|
117
|
+
},
|
|
118
|
+
"buddyName": {
|
|
119
|
+
"type": "string"
|
|
120
|
+
},
|
|
121
|
+
"buddyDescription": {
|
|
122
|
+
"type": "string"
|
|
123
|
+
},
|
|
124
|
+
"agentId": {
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
"capabilities": {
|
|
128
|
+
"type": "object",
|
|
129
|
+
"additionalProperties": true
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"uiHints": {
|
|
137
|
+
"token": {
|
|
138
|
+
"label": "Agent Token",
|
|
139
|
+
"sensitive": true,
|
|
140
|
+
"placeholder": "Paste the JWT token generated in Shadow -> Agents"
|
|
141
|
+
},
|
|
142
|
+
"serverUrl": {
|
|
143
|
+
"label": "Server URL",
|
|
144
|
+
"placeholder": "https://shadowob.com"
|
|
145
|
+
},
|
|
146
|
+
"enabled": {
|
|
147
|
+
"label": "Enabled"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
33
151
|
}
|
|
34
152
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shadowob/openclaw-shadowob",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3-dev.251",
|
|
4
4
|
"description": "OpenClaw Shadow channel plugin — enables AI agents to interact in Shadow server channels",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"zod": "^3.25.67",
|
|
60
|
-
"openclaw": "^2026.
|
|
61
|
-
"@shadowob/sdk": "1.1.
|
|
60
|
+
"openclaw": "^2026.5.7",
|
|
61
|
+
"@shadowob/sdk": "1.1.3-dev.251"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@types/node": "^22.15.21",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"scripts": {
|
|
71
71
|
"build": "tsup",
|
|
72
72
|
"dev": "tsup --watch",
|
|
73
|
+
"typecheck": "tsc --noEmit",
|
|
73
74
|
"test": "vitest run",
|
|
74
75
|
"test:watch": "vitest"
|
|
75
76
|
}
|
package/skills/shadowob/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: shadowob
|
|
3
|
-
description: "Shadow server CLI — complete command-line interface for Shadow servers including servers, channels, DMs, workspace, shop, apps, agents, marketplace, and more"
|
|
3
|
+
description: "Shadow server CLI — complete command-line interface for Shadow servers including servers, channels, DMs, workspace, shop, apps, agents, marketplace, OAuth, and more"
|
|
4
4
|
metadata:
|
|
5
5
|
{
|
|
6
6
|
"openclaw":
|
|
@@ -197,36 +197,20 @@ shadowob workspace folders delete <folder-id>
|
|
|
197
197
|
```bash
|
|
198
198
|
# Shop info
|
|
199
199
|
shadowob shop get <server-id> --json
|
|
200
|
-
shadowob shop update <server-id> [--name <name>] [--description <desc>] --json
|
|
201
|
-
|
|
202
|
-
# Categories
|
|
203
|
-
shadowob shop categories list <server-id> --json
|
|
204
|
-
shadowob shop categories create <server-id> --name <name> [--description <desc>] --json
|
|
205
|
-
shadowob shop categories update <category-id> [--name <name>] [--description <desc>] --json
|
|
206
|
-
shadowob shop categories delete <category-id>
|
|
207
200
|
|
|
208
201
|
# Products
|
|
209
|
-
shadowob shop products list <server-id>
|
|
210
|
-
shadowob shop products get <product-id> --json
|
|
211
|
-
shadowob shop products create <server-id> --name <name> --price <n> [--description <desc>] [--category-id <id>] [--stock <n>] --json
|
|
212
|
-
shadowob shop products update <product-id> [--name <name>] [--price <n>] [--description <desc>] [--stock <n>] --json
|
|
213
|
-
shadowob shop products delete <product-id>
|
|
202
|
+
shadowob shop products list <server-id> --json
|
|
203
|
+
shadowob shop products get <server-id> <product-id> --json
|
|
214
204
|
|
|
215
205
|
# Cart
|
|
216
206
|
shadowob shop cart list <server-id> --json
|
|
217
|
-
shadowob shop cart add <server-id> --product-id <id> [--quantity <n>] --json
|
|
218
|
-
shadowob shop cart update <item-id> --quantity <n> --json
|
|
219
|
-
shadowob shop cart remove <item-id>
|
|
220
207
|
|
|
221
208
|
# Orders
|
|
222
|
-
shadowob shop orders list
|
|
223
|
-
shadowob shop orders get <order-id> --json
|
|
224
|
-
shadowob shop orders create <server-id> [--note <text>] --json
|
|
209
|
+
shadowob shop orders list <server-id> --json
|
|
210
|
+
shadowob shop orders get <server-id> <order-id> --json
|
|
225
211
|
|
|
226
212
|
# Wallet
|
|
227
213
|
shadowob shop wallet balance --json
|
|
228
|
-
shadowob shop wallet transactions [--limit <n>] --json
|
|
229
|
-
shadowob shop wallet topup --amount <n> --json
|
|
230
214
|
```
|
|
231
215
|
|
|
232
216
|
## Apps
|
|
@@ -273,50 +257,51 @@ shadowob notifications preferences update [--email-enabled <bool>] [--push-enabl
|
|
|
273
257
|
# List friends
|
|
274
258
|
shadowob friends list --json
|
|
275
259
|
|
|
276
|
-
#
|
|
260
|
+
# Friend requests
|
|
277
261
|
shadowob friends requests [--incoming] [--outgoing] --json
|
|
278
|
-
shadowob friends add <
|
|
279
|
-
shadowob friends accept <
|
|
280
|
-
shadowob friends reject <
|
|
281
|
-
|
|
282
|
-
#
|
|
283
|
-
shadowob friends remove <
|
|
284
|
-
shadowob friends block <user-id>
|
|
285
|
-
shadowob friends unblock <user-id>
|
|
286
|
-
shadowob friends blocked --json
|
|
262
|
+
shadowob friends add <username> [--message <text>] --json
|
|
263
|
+
shadowob friends accept <request-id> --json
|
|
264
|
+
shadowob friends reject <request-id> --json
|
|
265
|
+
|
|
266
|
+
# Remove friend
|
|
267
|
+
shadowob friends remove <friendship-id> --json
|
|
287
268
|
```
|
|
288
269
|
|
|
289
270
|
## Invites
|
|
290
271
|
|
|
291
272
|
```bash
|
|
292
|
-
# List
|
|
293
|
-
shadowob invites list
|
|
273
|
+
# List your invite codes
|
|
274
|
+
shadowob invites list --json
|
|
294
275
|
|
|
295
|
-
# Create
|
|
296
|
-
shadowob invites create
|
|
297
|
-
shadowob invites revoke <invite-id>
|
|
298
|
-
shadowob invites regenerate <server-id> --json
|
|
276
|
+
# Create invite code
|
|
277
|
+
shadowob invites create [--max-uses <n>] [--expires-in <hours>] --json
|
|
299
278
|
|
|
300
|
-
#
|
|
301
|
-
shadowob invites
|
|
279
|
+
# Deactivate/Delete invite
|
|
280
|
+
shadowob invites deactivate <invite-id>
|
|
281
|
+
shadowob invites delete <invite-id>
|
|
302
282
|
```
|
|
303
283
|
|
|
304
284
|
## OAuth
|
|
305
285
|
|
|
306
286
|
```bash
|
|
307
|
-
# List apps
|
|
287
|
+
# List OAuth apps
|
|
308
288
|
shadowob oauth list --json
|
|
309
289
|
|
|
310
|
-
#
|
|
311
|
-
shadowob oauth get <app-id> --json
|
|
290
|
+
# Create OAuth app
|
|
312
291
|
shadowob oauth create --name <name> [--description <desc>] [--redirect-uri <uri>] [--homepage <url>] --json
|
|
292
|
+
|
|
293
|
+
# Update/Delete OAuth app
|
|
313
294
|
shadowob oauth update <app-id> [--name <name>] [--description <desc>] [--redirect-uri <uri>] [--homepage <url>] --json
|
|
314
295
|
shadowob oauth delete <app-id>
|
|
315
|
-
shadowob oauth regenerate-secret <app-id> --json
|
|
316
296
|
|
|
317
|
-
#
|
|
318
|
-
shadowob oauth
|
|
319
|
-
|
|
297
|
+
# Reset client secret
|
|
298
|
+
shadowob oauth reset-secret <app-id> --json
|
|
299
|
+
|
|
300
|
+
# List authorized apps (user consents)
|
|
301
|
+
shadowob oauth consents --json
|
|
302
|
+
|
|
303
|
+
# Revoke consent for an app
|
|
304
|
+
shadowob oauth revoke <app-id>
|
|
320
305
|
```
|
|
321
306
|
|
|
322
307
|
## Marketplace
|
|
@@ -340,23 +325,18 @@ shadowob marketplace contracts extend <contract-id> --hours <n> --json
|
|
|
340
325
|
## Media
|
|
341
326
|
|
|
342
327
|
```bash
|
|
343
|
-
# Upload
|
|
328
|
+
# Upload a file
|
|
344
329
|
shadowob media upload --file <path> [--server-id <id>] [--channel-id <id>] --json
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
shadowob media
|
|
330
|
+
|
|
331
|
+
# Download a file
|
|
332
|
+
shadowob media download <file-url> [--output <path>]
|
|
348
333
|
```
|
|
349
334
|
|
|
350
335
|
## Search
|
|
351
336
|
|
|
352
337
|
```bash
|
|
353
|
-
#
|
|
354
|
-
shadowob search global --query <text> [--server-id <id>] [--channel-id <id>] [--type <type>] [--limit <n>] --json
|
|
355
|
-
|
|
356
|
-
# Specific searches
|
|
338
|
+
# Search messages
|
|
357
339
|
shadowob search messages --query <text> [--server-id <id>] [--channel-id <id>] [--author-id <id>] [--after <date>] [--before <date>] [--has-attachments] [--limit <n>] --json
|
|
358
|
-
shadowob search users --query <text> [--limit <n>] --json
|
|
359
|
-
shadowob search servers --query <text> [--limit <n>] --json
|
|
360
340
|
```
|
|
361
341
|
|
|
362
342
|
## Listen (Real-time Events)
|
|
@@ -386,4 +366,4 @@ Commands exit with code 1 on error. Use `--json` to get structured errors:
|
|
|
386
366
|
|
|
387
367
|
```json
|
|
388
368
|
{ "error": "message" }
|
|
389
|
-
```
|
|
369
|
+
```
|