@agenticmail/openclaw 0.5.39 → 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.
Files changed (2) hide show
  1. package/dist/index.js +4 -0
  2. package/package.json +5 -3
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/openclaw",
3
- "version": "0.5.39",
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
+ }