@agenticmail/openclaw 0.5.34 → 0.5.38

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 +5 -28
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1776,28 +1776,6 @@ ${orig.text || ""}`;
1776
1776
  }
1777
1777
  }
1778
1778
  });
1779
- reg("agenticmail_assign_task", {
1780
- description: "Assign a task to another agent via the task queue. The target agent can claim and process it asynchronously. More efficient than sending emails for structured work assignments.",
1781
- parameters: {
1782
- assignee: { type: "string", required: true, description: "Name of the agent to assign the task to" },
1783
- taskType: { type: "string", description: "Task category (default: generic)" },
1784
- payload: { type: "object", description: "Task data/instructions as key-value pairs" },
1785
- expiresInSeconds: { type: "number", description: "Task expiry in seconds (optional)" }
1786
- },
1787
- handler: async (params) => {
1788
- try {
1789
- const c = await ctxForParams(ctx, params);
1790
- return await apiRequest(c, "POST", "/tasks/assign", {
1791
- assignee: params.assignee,
1792
- taskType: params.taskType,
1793
- payload: params.payload,
1794
- expiresInSeconds: params.expiresInSeconds
1795
- });
1796
- } catch (err) {
1797
- return { success: false, error: err.message };
1798
- }
1799
- }
1800
- });
1801
1779
  reg("agenticmail_check_tasks", {
1802
1780
  description: "Check for pending tasks assigned to you (or a specific agent), or tasks you assigned to others.",
1803
1781
  parameters: {
@@ -2967,8 +2945,8 @@ function activate(api) {
2967
2945
  prependLines.push(
2968
2946
  "<agenticmail-coordination>",
2969
2947
  "\u{1F380} AgenticMail coordination tools available:",
2970
- "- agenticmail_call_agent: Call another agent and get structured JSON result",
2971
- "- agenticmail_assign_task / claim_task / submit_result: Task queue with lifecycle tracking",
2948
+ "- agenticmail_call_agent: Call another agent and get structured JSON result (preferred method)",
2949
+ "- agenticmail_check_tasks / claim_task / submit_result / complete_task: Task queue with lifecycle tracking",
2972
2950
  "- agenticmail_message_agent: Message an agent by name",
2973
2951
  "- agenticmail_list_agents: Discover available agents",
2974
2952
  "- agenticmail_check_tasks: Check task status (pending/claimed/completed)",
@@ -2980,11 +2958,10 @@ function activate(api) {
2980
2958
  prependLines.push(
2981
2959
  "<agenticmail-coordination>",
2982
2960
  "\u{1F380} AgenticMail is installed \u2014 prefer these over sessions_spawn/sessions_send:",
2983
- '- agenticmail_call_agent(target, task, mode?) \u2192 RPC call, returns structured JSON. Use mode="light" for simple tasks (no email overhead).',
2984
- "- agenticmail_assign_task \u2192 async delegation; agenticmail_check_tasks \u2192 check status",
2961
+ '- agenticmail_call_agent(target, task, mode?) \u2192 RPC call, returns structured JSON. Use mode="light" for simple tasks (no email overhead). Use async=true for long-running tasks.',
2985
2962
  "- agenticmail_message_agent \u2192 message agent by name; agenticmail_list_agents \u2192 discover agents",
2986
- "- agenticmail_wait_for_email \u2192 push-based wait (no polling)",
2987
- "call_agent auto-detects complexity: simple tasks skip email account creation entirely.",
2963
+ "- agenticmail_check_tasks \u2192 check task status; agenticmail_wait_for_email \u2192 push-based wait (no polling)",
2964
+ "Use call_agent for ALL agent delegation (sync and async). It auto-detects complexity and spawns sessions.",
2988
2965
  "</agenticmail-coordination>"
2989
2966
  );
2990
2967
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/openclaw",
3
- "version": "0.5.34",
3
+ "version": "0.5.38",
4
4
  "description": "OpenClaw plugin for AgenticMail \u2014 email, SMS, and phone number access for OpenClaw agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",