@agenticmail/openclaw 0.5.37 → 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 -39
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1776,39 +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
- const result = await apiRequest(c, "POST", "/tasks/assign", {
1791
- assignee: params.assignee,
1792
- taskType: params.taskType,
1793
- payload: params.payload,
1794
- expiresInSeconds: params.expiresInSeconds
1795
- });
1796
- if (result?.id && coordination?.spawnForTask) {
1797
- const taskPayload = {
1798
- task: params.payload?.task || params.payload?.description || JSON.stringify(params.payload || {}),
1799
- _mode: "light",
1800
- _async: true,
1801
- ...params.payload || {}
1802
- };
1803
- coordination.spawnForTask(params.assignee, result.id, taskPayload).catch(() => {
1804
- });
1805
- }
1806
- return result;
1807
- } catch (err) {
1808
- return { success: false, error: err.message };
1809
- }
1810
- }
1811
- });
1812
1779
  reg("agenticmail_check_tasks", {
1813
1780
  description: "Check for pending tasks assigned to you (or a specific agent), or tasks you assigned to others.",
1814
1781
  parameters: {
@@ -2978,8 +2945,8 @@ function activate(api) {
2978
2945
  prependLines.push(
2979
2946
  "<agenticmail-coordination>",
2980
2947
  "\u{1F380} AgenticMail coordination tools available:",
2981
- "- agenticmail_call_agent: Call another agent and get structured JSON result",
2982
- "- 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",
2983
2950
  "- agenticmail_message_agent: Message an agent by name",
2984
2951
  "- agenticmail_list_agents: Discover available agents",
2985
2952
  "- agenticmail_check_tasks: Check task status (pending/claimed/completed)",
@@ -2991,11 +2958,10 @@ function activate(api) {
2991
2958
  prependLines.push(
2992
2959
  "<agenticmail-coordination>",
2993
2960
  "\u{1F380} AgenticMail is installed \u2014 prefer these over sessions_spawn/sessions_send:",
2994
- '- agenticmail_call_agent(target, task, mode?) \u2192 RPC call, returns structured JSON. Use mode="light" for simple tasks (no email overhead).',
2995
- "- 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.',
2996
2962
  "- agenticmail_message_agent \u2192 message agent by name; agenticmail_list_agents \u2192 discover agents",
2997
- "- agenticmail_wait_for_email \u2192 push-based wait (no polling)",
2998
- "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.",
2999
2965
  "</agenticmail-coordination>"
3000
2966
  );
3001
2967
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/openclaw",
3
- "version": "0.5.37",
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",