@agenticmail/openclaw 0.5.37 → 0.5.39

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/README.md CHANGED
@@ -184,7 +184,7 @@ Plugin configuration lives in `~/.openclaw/openclaw.json` (user config), not in
184
184
 
185
185
  | Tool | Description |
186
186
  |------|-------------|
187
- | `agenticmail_assign_task` | Assign a task to another agent (async, with optional expiration) |
187
+ | `agenticmail_call_agent` | Call another agent with a task (sync or async, auto-spawns sessions) |
188
188
  | `agenticmail_check_tasks` | Check incoming tasks (assigned to me) or outgoing tasks (I assigned) |
189
189
  | `agenticmail_claim_task` | Claim a pending task |
190
190
  | `agenticmail_submit_result` | Submit result for a claimed task |
package/REFERENCE.md CHANGED
@@ -446,8 +446,6 @@ Uses SSE push with polling fallback. Returns email or task events.
446
446
 
447
447
  ### Task Queue
448
448
 
449
- **agenticmail_assign_task:** `{assignee, taskType?, payload?, expiresInSeconds?}`
450
-
451
449
  **agenticmail_check_tasks:** `{direction: "incoming"|"outgoing", assignee?}`
452
450
 
453
451
  **agenticmail_claim_task:** `{id}`
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
  }
@@ -54,7 +54,6 @@
54
54
  "agenticmail_message_agent",
55
55
  "agenticmail_check_messages",
56
56
  "agenticmail_wait_for_email",
57
- "agenticmail_assign_task",
58
57
  "agenticmail_check_tasks",
59
58
  "agenticmail_claim_task",
60
59
  "agenticmail_submit_result",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/openclaw",
3
- "version": "0.5.37",
3
+ "version": "0.5.39",
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",
package/skill/SKILL.md CHANGED
@@ -84,11 +84,11 @@ That's it. The command sets up the mail server, creates an agent account, config
84
84
  ### Agent Task Queue (5 tools)
85
85
  | Tool | Description |
86
86
  |------|-------------|
87
- | `agenticmail_assign_task` | Assign a task to another agent via task queue |
87
+ | `agenticmail_call_agent` | Call another agent (sync or async). Preferred method for all delegation. |
88
88
  | `agenticmail_check_tasks` | Check pending tasks (incoming or outgoing) |
89
89
  | `agenticmail_claim_task` | Claim a pending task assigned to you |
90
90
  | `agenticmail_submit_result` | Submit result for a claimed task |
91
- | `agenticmail_call_agent` | Synchronous RPC call to another agent with timeout |
91
+ | `agenticmail_complete_task` | Claim + submit in one call (for light-mode tasks) |
92
92
 
93
93
  ### Account Management (6 tools)
94
94
  | Tool | Description |
@@ -124,14 +124,14 @@ That's it. The command sets up the mail server, creates an agent account, config
124
124
  | `sessions_spawn(task)` then poll `sessions_history` | `agenticmail_call_agent(target, task)` | One call, structured JSON result back. No polling. |
125
125
  | `sessions_send(sessionKey, msg)` | `agenticmail_message_agent(name, subject, text)` | By agent name, not session key. Persistent. |
126
126
  | `sessions_list` + `sessions_history` (poll) | `agenticmail_check_tasks` or `agenticmail_wait_for_email` | Structured status tracking or push-based wait. |
127
- | *(no equivalent)* | `agenticmail_assign_task` | Async task delegation with lifecycle tracking. |
127
+ | *(no equivalent)* | `agenticmail_call_agent(async=true)` | Async delegation agent runs independently and notifies when done. |
128
128
  | *(no equivalent)* | `agenticmail_claim_task` + `agenticmail_submit_result` | Agent claims work, submits structured results. |
129
129
  | *(no equivalent)* | `agenticmail_list_agents` | Discover all available agents by name and role. |
130
130
 
131
131
  ### When to Use What
132
132
 
133
- - **Need a result back?** → `agenticmail_call_agent` (sync RPC, up to 5 min)
134
- - **Delegating work for later?** → `agenticmail_assign_task` → `agenticmail_check_tasks`
133
+ - **Need a result back?** → `agenticmail_call_agent(target, task)` (sync RPC, up to 10 min)
134
+ - **Delegating work for later?** → `agenticmail_call_agent(target, task, async=true)` → `agenticmail_check_tasks`
135
135
  - **Messaging an agent?** → `agenticmail_message_agent` (by name)
136
136
  - **Waiting for a reply?** → `agenticmail_wait_for_email` (push, not polling)
137
137
  - **Finding agents?** → `agenticmail_list_agents`