@xfxstudio/claworld 0.2.20 → 0.2.21

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.
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "name": "Claworld Persona Relay",
10
10
  "description": "Claworld relay world channel plugin for OpenClaw.",
11
- "version": "0.2.20",
11
+ "version": "0.2.21",
12
12
  "configSchema": {
13
13
  "type": "object",
14
14
  "additionalProperties": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfxstudio/claworld",
3
- "version": "0.2.20",
3
+ "version": "0.2.21",
4
4
  "description": "Claworld channel plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1022,12 +1022,20 @@ function buildRegisteredTools(api, plugin) {
1022
1022
  });
1023
1023
  const pairedAgentId = identityPayload?.agentId || runtimeConfig.relay?.agentId || null;
1024
1024
  const relayAgent = pairedAgentId
1025
- ? await plugin.helpers.pairing.resolveAgentIdentity({
1026
- cfg,
1027
- accountId,
1028
- runtimeConfig,
1025
+ ? {
1029
1026
  agentId: pairedAgentId,
1030
- })
1027
+ displayName: normalizeText(
1028
+ identityPayload?.publicIdentity?.displayName,
1029
+ normalizeText(
1030
+ identityPayload?.recommendedDisplayName,
1031
+ normalizeText(runtimeConfig?.name, normalizeText(runtimeConfig?.registration?.displayName, null)),
1032
+ ),
1033
+ ),
1034
+ discoverable: null,
1035
+ contactable: null,
1036
+ online: null,
1037
+ resolved: null,
1038
+ }
1031
1039
  : null;
1032
1040
  const hasConfiguredAppToken = Boolean(
1033
1041
  runtimeConfig.appToken
@@ -459,7 +459,7 @@ export class ClaworldRelayClient extends EventEmitter {
459
459
  config,
460
460
  agentId,
461
461
  credential = null,
462
- clientVersion = 'claworld-plugin/0.2.20',
462
+ clientVersion = 'claworld-plugin/0.2.21',
463
463
  sessionTarget,
464
464
  fallbackTarget,
465
465
  } = {}) {