openclaw-remote 0.5.7 → 0.5.8

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/dist/index.js +15 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2921,6 +2921,15 @@ function formatWebhookEvent(payload) {
2921
2921
  ``,
2922
2922
  `Acknowledge the status change if relevant to your work.`
2923
2923
  ].filter(Boolean).join("\n");
2924
+ case "agent.generate":
2925
+ return [
2926
+ `Generate an AI agent bundle for the role: "${task_title}" (Role ID: ${task_id}).`,
2927
+ ``,
2928
+ wake_reason ? `Context: ${wake_reason}` : "",
2929
+ ``,
2930
+ `Use your agent-creation skill to build a complete agent bundle for this role.`,
2931
+ `When done, publish it with clawpack push.`
2932
+ ].filter(Boolean).join("\n");
2924
2933
  default:
2925
2934
  return `Task update on "${task_title}" (ID: ${task_id}): ${event}${wake_reason ? ` \u2014 ${wake_reason}` : ""}`;
2926
2935
  }
@@ -3098,15 +3107,18 @@ function createRemotePlugin() {
3098
3107
  ConversationLabel: payload.task_title || `Task ${payload.task_id}`,
3099
3108
  Timestamp: Date.now()
3100
3109
  });
3101
- await rt.channel.reply.dispatchReplyWithBufferedBlockDispatcher({
3110
+ log?.info?.(`Dispatching to agent for task ${payload.task_id}, body length=${body.length}, sessionKey=${sessionKey}`);
3111
+ const result = await rt.channel.reply.dispatchReplyWithBufferedBlockDispatcher({
3102
3112
  ctx: msgCtx,
3103
3113
  cfg: currentCfg,
3104
3114
  dispatcherOptions: {
3105
3115
  deliver: async (deliverPayload) => {
3116
+ log?.info?.(`Deliver callback for task ${payload.task_id}: isReasoning=${deliverPayload.isReasoning}, hasText=${!!(deliverPayload?.text ?? deliverPayload?.body)}, textLen=${(deliverPayload?.text ?? deliverPayload?.body ?? "").length}`);
3106
3117
  if (deliverPayload.isReasoning) return;
3107
3118
  const text = deliverPayload?.text ?? deliverPayload?.body;
3108
3119
  if (text) {
3109
3120
  await postComment(account, payload.task_id, text);
3121
+ log?.info?.(`Comment posted for task ${payload.task_id}, len=${text.length}`);
3110
3122
  }
3111
3123
  },
3112
3124
  onReplyStart: () => {
@@ -3114,9 +3126,10 @@ function createRemotePlugin() {
3114
3126
  }
3115
3127
  }
3116
3128
  });
3129
+ log?.info?.(`Dispatch completed for task ${payload.task_id}, result=${JSON.stringify(result ?? null)}`);
3117
3130
  } catch (err) {
3118
3131
  log?.error?.(
3119
- `Error dispatching webhook event: ${err instanceof Error ? err.message : String(err)}`
3132
+ `Error dispatching webhook event: ${err instanceof Error ? err.message : String(err)}, stack=${err instanceof Error ? err.stack : "N/A"}`
3120
3133
  );
3121
3134
  }
3122
3135
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-remote",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
4
4
  "description": "Remote project board channel plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",