@relaymessenger/openclaw-plugin 0.4.10 → 0.4.11

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.
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "relayServer": {
3
3
  "repository": "RelayMessenger/Relay-Server",
4
- "commit": "af7f1802cbad49485c8753cb1ad503dd97ae1ada",
4
+ "commit": "78e958bd35f5e7f33c1ce9b77ac11be1dac3afc8",
5
5
  "openapiPath": "contracts/developer/openapi.yaml",
6
- "sha256": "7ca002357a04610ee2012ae59d8f0789e9d44a000388ca926ea1ed68f44d96d9"
6
+ "sha256": "abe76bc8feadd85462ff4293eba9bc1b2cea44b9929b0fbc772a120d84efb365"
7
7
  },
8
8
  "relaySdk": {
9
9
  "package": "@relaymessenger/sdk",
10
- "version": "0.5.1",
11
- "integrity": "sha512-7xEZ15vAF9WOb9dSJoTNkGnou+X7tNNC9s+bw/6mkw13/DPHUsACM2h4N94WbOQ4roWzOtwET+BgdSjMCY4pug==",
10
+ "version": "0.5.2",
11
+ "integrity": "sha512-p6T17Z96/NO6DcTc8D2U3JOwhvri3WsIS7YghT6rqxcGVWBe1FDZX0+RxBXgTv2Y/lueNwEp0JllZKQFm+j06Q==",
12
12
  "operationsSha256": "e094bf711e65ec5d37c2ca0203cf589be5747308aef8d590fd7cc5af0ac71564",
13
- "workspaceOpenapiSha256": "7ca002357a04610ee2012ae59d8f0789e9d44a000388ca926ea1ed68f44d96d9",
13
+ "workspaceOpenapiSha256": "abe76bc8feadd85462ff4293eba9bc1b2cea44b9929b0fbc772a120d84efb365",
14
14
  "usedOperations": [
15
15
  {
16
16
  "method": "GET",
@@ -42,6 +42,10 @@ export function isRelayMessageReceivedEvent(event) {
42
42
  export function buildRelayInboundFacts(event) {
43
43
  if (!isRelayMessageReceivedEvent(event))
44
44
  return null;
45
+ // A sender with no Handle is skipped; isRelayMessageReceivedEvent already
46
+ // rejects it at runtime.
47
+ if (!event.data.sender_handle)
48
+ return null;
45
49
  if (event.data.sender_handle.kind !== "user" &&
46
50
  event.data.sender_handle.kind !== "agent")
47
51
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@relaymessenger/openclaw-plugin",
3
- "version": "0.4.10",
3
+ "version": "0.4.11",
4
4
  "description": "Native Relay channel plugin for OpenClaw",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -37,7 +37,7 @@
37
37
  "prepack": "npm run build"
38
38
  },
39
39
  "dependencies": {
40
- "@relaymessenger/sdk": "0.5.1"
40
+ "@relaymessenger/sdk": "0.5.2"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "^26.6.2",
package/src/inbound.ts CHANGED
@@ -60,6 +60,9 @@ export function buildRelayInboundFacts(
60
60
  event: RelayWebhookEvent,
61
61
  ): RelayInboundFacts | null {
62
62
  if (!isRelayMessageReceivedEvent(event)) return null;
63
+ // A sender with no Handle is skipped; isRelayMessageReceivedEvent already
64
+ // rejects it at runtime.
65
+ if (!event.data.sender_handle) return null;
63
66
  if (
64
67
  event.data.sender_handle.kind !== "user" &&
65
68
  event.data.sender_handle.kind !== "agent"