@unicitylabs/openclaw-unicity 0.3.10 → 0.5.0

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/channel.ts +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unicitylabs/openclaw-unicity",
3
- "version": "0.3.10",
3
+ "version": "0.5.0",
4
4
  "description": "Unicity wallet identity and encrypted DMs for OpenClaw agents — powered by Sphere SDK",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -44,7 +44,7 @@
44
44
  "dependencies": {
45
45
  "@clack/prompts": "^0.10.0",
46
46
  "@sinclair/typebox": "^0.34.48",
47
- "@unicitylabs/sphere-sdk": "^0.4.3"
47
+ "@unicitylabs/sphere-sdk": "^0.5.4"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "openclaw": "*"
package/src/channel.ts CHANGED
@@ -243,6 +243,10 @@ export const unicityChannelPlugin = {
243
243
  ctx.log?.info(`[${ctx.account.accountId}] Subscribing to DMs (pubkey: ${sphere.identity?.chainPubkey?.slice(0, 16)}...)`);
244
244
 
245
245
  const unsub = sphere.communications.onDirectMessage((msg) => {
246
+ // Immediately signal that we're composing a reply
247
+ sphere.communications.sendComposingIndicator(msg.senderPubkey)
248
+ .catch((err: unknown) => ctx.log?.error(`[${ctx.account.accountId}] Composing indicator failed: ${err}`));
249
+
246
250
  // Use @nametag if available, otherwise raw pubkey
247
251
  const peerId = msg.senderNametag ? `@${msg.senderNametag}` : msg.senderPubkey;
248
252
  ctx.log?.info(`[${ctx.account.accountId}] DM received from ${peerId}: ${msg.content.slice(0, 80)}`);