openclaw-app 1.1.9 → 1.2.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.
package/index.ts CHANGED
@@ -337,6 +337,7 @@ const RECONNECT_DELAY = 5000;
337
337
  const PING_INTERVAL = 30_000; // 30s keepalive — prevents DO hibernation
338
338
  const DEFAULT_ACCOUNT_ID = "default";
339
339
  const CHANNEL_ID = "openclaw-app";
340
+ const PLUGIN_VERSION = "1.1.9";
340
341
  /** Fixed chatSessionKey that routes cron messages to the App inbox UI */
341
342
  const INBOX_CHAT_SESSION_KEY = "inbox";
342
343
 
@@ -499,7 +500,7 @@ const channel = {
499
500
  // OpenClaw's resolveOutboundTarget() falls back to this when no explicit
500
501
  // `to` is provided in delivery config. Our channel always targets the
501
502
  // single connected mobile user.
502
- resolveDefaultTo: () => "app-user123456789",
503
+ resolveDefaultTo: () => "openclaw-app-user",
503
504
  },
504
505
  outbound: {
505
506
  deliveryMode: "direct" as const,
@@ -508,7 +509,7 @@ const channel = {
508
509
  // Called by resolveOutboundTarget() in src/infra/outbound/targets.ts
509
510
  // to validate/normalize the delivery target address.
510
511
  resolveTarget: ({ to }: { to?: string; allowFrom?: string[]; accountId?: string | null; mode?: string }) => {
511
- const target = to?.trim() || "app-user123456789";
512
+ const target = to?.trim() || "openclaw-app-user";
512
513
  return { ok: true as const, to: target };
513
514
  },
514
515
 
@@ -1166,6 +1167,11 @@ async function handleRpc(ctx: any, accountId: string, msg: any): Promise<boolean
1166
1167
  }
1167
1168
 
1168
1169
  await sendRpcReply({ tools });
1170
+ } else if (method === "plugin.version") {
1171
+ await sendRpcReply({
1172
+ pluginVersion: PLUGIN_VERSION,
1173
+ channelId: CHANNEL_ID,
1174
+ });
1169
1175
  } else if (method === "inbox.test") {
1170
1176
  // Debug/test: send a test message to the App inbox
1171
1177
  const testText = (params.text as string) || "🔔 Inbox test — if you see this, the pipeline works!";
@@ -1242,8 +1248,8 @@ async function handleInbound(ctx: any, accountId: string, msg: any) {
1242
1248
  return;
1243
1249
  }
1244
1250
 
1245
- const senderId = msg.senderId ?? "mobile-user";
1246
- const senderName = msg.senderName ?? "Mobile User";
1251
+ const senderId = msg.senderId ?? "openclaw-app-user";
1252
+ const senderName = msg.senderName ?? "openclaw-app-user";
1247
1253
  const text = String(msg.content);
1248
1254
  const chatSessionKey = msg.chatSessionKey ? String(msg.chatSessionKey) : null;
1249
1255
 
@@ -1514,8 +1520,8 @@ export default function register(api: any) {
1514
1520
  runtime.cron.add = async (jobCreate: any) => {
1515
1521
  if (jobCreate && jobCreate.delivery && jobCreate.delivery.channel === CHANNEL_ID) {
1516
1522
  if (!jobCreate.delivery.to) {
1517
- jobCreate.delivery.to = "app-user123456789";
1518
- api.logger?.info?.(`[openclaw-app] Auto-filled delivery.to=app-user123456789 for new cron job`);
1523
+ jobCreate.delivery.to = "openclaw-app-user";
1524
+ api.logger?.info?.(`[openclaw-app] Auto-filled delivery.to=openclaw-app-user for new cron job`);
1519
1525
  }
1520
1526
  }
1521
1527
  return await originalCronAdd(jobCreate);
@@ -1583,4 +1589,4 @@ function _parseSkillFrontmatter(content: string): Record<string, any> {
1583
1589
  else result[key] = val;
1584
1590
  }
1585
1591
  return result;
1586
- }
1592
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "openclaw-app",
3
3
  "name": "OpenClaw App",
4
- "version": "1.1.9",
4
+ "version": "1.2.0",
5
5
  "description": "Mobile app channel for OpenClaw — chat via the OpenClaw App app through a Cloudflare Worker relay.",
6
6
  "channels": [
7
7
  "openclaw-app"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-app",
3
- "version": "1.1.9",
3
+ "version": "1.2.0",
4
4
  "description": "OpenClaw App channel plugin — relay bridge for the OpenClaw App app",
5
5
  "main": "index.ts",
6
6
  "type": "module",