agentmetrics-openclaw 0.2.0 → 0.2.1

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/index.ts +2 -2
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -259,9 +259,9 @@ const plugin = {
259
259
  "https://api.agentmetrics.dev"
260
260
  ).replace(/\/$/, "");
261
261
 
262
- // Auto-enable when env var is present no manual enable needed
262
+ // Auto-enable when a key is available (env var or plugin config)
263
263
  if (typeof api.registerAutoEnableProbe === "function") {
264
- api.registerAutoEnableProbe(() => !!process.env.AGENTMETRICS_API_KEY);
264
+ api.registerAutoEnableProbe(() => !!API_KEY);
265
265
  }
266
266
 
267
267
  if (!API_KEY) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentmetrics-openclaw",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "description": "AgentMetrics observability plugin for OpenClaw agents",
6
6
  "license": "MIT",