r2-relay-channel 0.3.5
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/LICENSE +21 -0
- package/README.md +309 -0
- package/dist/channel.d.ts +16 -0
- package/dist/channel.js +271 -0
- package/dist/checkpoint-store.d.ts +4 -0
- package/dist/checkpoint-store.js +16 -0
- package/dist/commands.d.ts +2 -0
- package/dist/commands.js +54 -0
- package/dist/config.d.ts +76 -0
- package/dist/config.js +123 -0
- package/dist/conversation-targets.d.ts +32 -0
- package/dist/conversation-targets.js +120 -0
- package/dist/inbound.d.ts +38 -0
- package/dist/inbound.js +440 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +26 -0
- package/dist/lifecycle.d.ts +64 -0
- package/dist/lifecycle.js +296 -0
- package/dist/media.d.ts +30 -0
- package/dist/media.js +361 -0
- package/dist/message-adapter.d.ts +27 -0
- package/dist/message-adapter.js +53 -0
- package/dist/openclaw.plugin.json +41 -0
- package/dist/outbound.d.ts +28 -0
- package/dist/outbound.js +141 -0
- package/dist/protocol.d.ts +2 -0
- package/dist/protocol.js +1 -0
- package/dist/r2-relay.d.ts +1 -0
- package/dist/r2-relay.js +1 -0
- package/dist/r2client.d.ts +33 -0
- package/dist/r2client.js +137 -0
- package/dist/relay-core/checkpoint.d.ts +31 -0
- package/dist/relay-core/checkpoint.js +95 -0
- package/dist/relay-core/errors.d.ts +9 -0
- package/dist/relay-core/errors.js +18 -0
- package/dist/relay-core/index.d.ts +6 -0
- package/dist/relay-core/index.js +6 -0
- package/dist/relay-core/keyspace.d.ts +24 -0
- package/dist/relay-core/keyspace.js +60 -0
- package/dist/relay-core/object-store.d.ts +20 -0
- package/dist/relay-core/object-store.js +1 -0
- package/dist/relay-core/transport.d.ts +48 -0
- package/dist/relay-core/transport.js +326 -0
- package/dist/relay-core/types.d.ts +220 -0
- package/dist/relay-core/types.js +1 -0
- package/dist/runtime.d.ts +9 -0
- package/dist/runtime.js +54 -0
- package/dist/service.d.ts +51 -0
- package/dist/service.js +186 -0
- package/dist/service.test.d.ts +1 -0
- package/dist/service.test.js +27 -0
- package/dist/session-publication.d.ts +7 -0
- package/dist/session-publication.js +365 -0
- package/dist/setup-entry.d.ts +6 -0
- package/dist/setup-entry.js +49 -0
- package/dist/setup.d.ts +3 -0
- package/dist/setup.js +291 -0
- package/dist/target.d.ts +6 -0
- package/dist/target.js +53 -0
- package/dist/webhook.d.ts +18 -0
- package/dist/webhook.js +225 -0
- package/openclaw.plugin.json +41 -0
- package/package.json +62 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "r2-relay-channel",
|
|
3
|
+
"kind": "channel",
|
|
4
|
+
"name": "R2 Relay Channel",
|
|
5
|
+
"description": "Cloudflare R2 relay channel plugin for OpenClaw by AgentDeck App.",
|
|
6
|
+
"channels": ["r2-relay-channel"],
|
|
7
|
+
"channelConfigs": {
|
|
8
|
+
"r2-relay-channel": {
|
|
9
|
+
"label": "R2 Relay",
|
|
10
|
+
"description": "Cloudflare R2 relay channel for direct text messaging.",
|
|
11
|
+
"schema": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"additionalProperties": false,
|
|
14
|
+
"properties": {
|
|
15
|
+
"enabled": { "type": "boolean" },
|
|
16
|
+
"configFile": { "type": "string" }
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"uiHints": {
|
|
20
|
+
"configFile": {
|
|
21
|
+
"label": "Config file",
|
|
22
|
+
"placeholder": "/path/to/r2relay.config.json"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"configSchema": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"additionalProperties": false,
|
|
30
|
+
"properties": {
|
|
31
|
+
"r2-relay-channel": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"additionalProperties": false,
|
|
34
|
+
"properties": {
|
|
35
|
+
"enabled": { "type": "boolean" },
|
|
36
|
+
"configFile": { "type": "string" }
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "r2-relay-channel",
|
|
3
|
+
"version": "0.3.5",
|
|
4
|
+
"description": "R2 Relay Channel is a secure, decentralized OpenClaw messaging channel that keeps delivery simple while preserving data ownership without relying on an IM provider.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/r2-relay.js",
|
|
7
|
+
"types": "dist/r2-relay.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"openclaw.plugin.json",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "node scripts/check-openclaw-version.mjs && tsc -p tsconfig.json && node scripts/prepare-dist.mjs",
|
|
15
|
+
"test": "npm run build && node --test dist/*.test.js",
|
|
16
|
+
"test:lifecycle": "node ../../tools/maintenance/openclaw-plugin-lifecycle.mjs",
|
|
17
|
+
"e2e:transport": "R2_RELAY_E2E_MODE=transport node e2e/run-openclaw-e2e.mjs",
|
|
18
|
+
"e2e:openclaw": "node e2e/run-openclaw-e2e.mjs",
|
|
19
|
+
"lint": "echo 'no-lint-config'",
|
|
20
|
+
"pack": "npm pack"
|
|
21
|
+
},
|
|
22
|
+
"author": "Wei Wu",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "https://github.com/dodid/AgentDeck.git",
|
|
27
|
+
"directory": "integrations/openclaw"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@aws-sdk/client-s3": "3.1119.0",
|
|
31
|
+
"@aws-sdk/s3-request-presigner": "3.1119.0",
|
|
32
|
+
"openclaw": "^2026.7.1-2",
|
|
33
|
+
"zod": "^4.4.3"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/node": "^26.4.0",
|
|
37
|
+
"typescript": "^7.0.2"
|
|
38
|
+
},
|
|
39
|
+
"openclaw": {
|
|
40
|
+
"extensions": [
|
|
41
|
+
"./dist/r2-relay.js"
|
|
42
|
+
],
|
|
43
|
+
"compat": {
|
|
44
|
+
"pluginApi": ">=2026.7.1",
|
|
45
|
+
"minGatewayVersion": "2026.7.1"
|
|
46
|
+
},
|
|
47
|
+
"build": {
|
|
48
|
+
"openclawVersion": "2026.7.1-2",
|
|
49
|
+
"pluginSdkVersion": "2026.7.1-2"
|
|
50
|
+
},
|
|
51
|
+
"setupEntry": "./dist/setup-entry.js",
|
|
52
|
+
"channel": {
|
|
53
|
+
"id": "r2-relay-channel",
|
|
54
|
+
"label": "R2 Relay by AgentDeck App",
|
|
55
|
+
"selectionLabel": "R2 Relay by AgentDeck App",
|
|
56
|
+
"docsPath": "/channels/r2-relay-channel",
|
|
57
|
+
"docsLabel": "r2-relay-channel",
|
|
58
|
+
"blurb": "Cloudflare R2-backed relay channel for direct text messages.",
|
|
59
|
+
"order": 120
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|