@agenticmail/openclaw 0.5.38 → 0.5.40

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
@@ -217,6 +217,7 @@ function restoreState() {
217
217
  }
218
218
 
219
219
  // src/tools.ts
220
+ import { recordToolCall } from "@agenticmail/core";
220
221
  async function apiRequest(ctx, method, path, body, useMasterKey = false, timeoutMs = 3e4) {
221
222
  const key = useMasterKey && ctx.config.masterKey ? ctx.config.masterKey : ctx.config.apiKey;
222
223
  if (!key) {
@@ -485,6 +486,7 @@ function registerTools(api, ctx, subagentAccounts2, coordination) {
485
486
  name,
486
487
  parameters: jsonSchema,
487
488
  execute: handler ? async (_toolCallId, params) => {
489
+ recordToolCall(name);
488
490
  if (sessionKey && subagentAccounts2 && !params._agentApiKey) {
489
491
  const account = subagentAccounts2.get(sessionKey);
490
492
  if (account) {
@@ -2597,6 +2599,7 @@ function createMailMonitorService(ctx) {
2597
2599
  }
2598
2600
 
2599
2601
  // index.ts
2602
+ import { setTelemetryVersion } from "@agenticmail/core";
2600
2603
  var MIN_SUBAGENT_TIMEOUT_S = 600;
2601
2604
  var subagentAccounts = /* @__PURE__ */ new Map();
2602
2605
  var SUBAGENT_GC_INTERVAL_MS = 15 * 6e4;
@@ -2882,6 +2885,7 @@ function activate(api) {
2882
2885
  console.warn(`[agenticmail] Could not auto-spawn session for "${agentName}" \u2014 task ${taskId} remains pending`);
2883
2886
  return false;
2884
2887
  };
2888
+ setTelemetryVersion("0.5.39");
2885
2889
  registerTools(api, ctx, subagentAccounts, { spawnForTask, activeSSEWatchers });
2886
2890
  initFollowUpSystem(api);
2887
2891
  if (api?.registerChannel) {
@@ -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.38",
3
+ "version": "0.5.40",
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",
@@ -31,7 +31,9 @@
31
31
  "preuninstall": "node scripts/uninstall.mjs",
32
32
  "prepublishOnly": "npm run build"
33
33
  },
34
- "dependencies": {},
34
+ "dependencies": {
35
+ "@agenticmail/core": "^0.5.39"
36
+ },
35
37
  "devDependencies": {
36
38
  "tsup": "^8.4.0",
37
39
  "typescript": "^5.7.0",
@@ -64,4 +66,4 @@
64
66
  },
65
67
  "author": "Ope Olatunji",
66
68
  "license": "MIT"
67
- }
69
+ }
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`