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.
- package/index.ts +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
|
|
262
|
+
// Auto-enable when a key is available (env var or plugin config)
|
|
263
263
|
if (typeof api.registerAutoEnableProbe === "function") {
|
|
264
|
-
api.registerAutoEnableProbe(() => !!
|
|
264
|
+
api.registerAutoEnableProbe(() => !!API_KEY);
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
if (!API_KEY) return;
|