@alfe.ai/openclaw-metrics 0.0.9 → 0.0.11

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/dist/plugin.cjs CHANGED
@@ -17,8 +17,8 @@ const plugin = {
17
17
  id: "@alfe.ai/openclaw-metrics",
18
18
  activate(api) {
19
19
  const log = api.logger;
20
- if (!api.runtime) {
21
- log.debug("Management command context — skipping metrics init");
20
+ if (api.registrationMode === "cli-metadata") {
21
+ log.debug("CLI metadata mode — skipping metrics init");
22
22
  return;
23
23
  }
24
24
  if (globalThis.__alfeMetricsPluginActivated === true) {
package/dist/plugin.d.cts CHANGED
@@ -18,7 +18,7 @@ interface PluginLogger {
18
18
  }
19
19
  interface PluginApi {
20
20
  logger: PluginLogger;
21
- runtime?: unknown;
21
+ registrationMode?: 'full' | 'setup-only' | 'setup-runtime' | 'cli-metadata';
22
22
  on(event: string, handler: (...args: unknown[]) => void | Promise<void>): void;
23
23
  }
24
24
  declare const plugin: {
package/dist/plugin.d.ts CHANGED
@@ -18,7 +18,7 @@ interface PluginLogger {
18
18
  }
19
19
  interface PluginApi {
20
20
  logger: PluginLogger;
21
- runtime?: unknown;
21
+ registrationMode?: 'full' | 'setup-only' | 'setup-runtime' | 'cli-metadata';
22
22
  on(event: string, handler: (...args: unknown[]) => void | Promise<void>): void;
23
23
  }
24
24
  declare const plugin: {
package/dist/plugin.js CHANGED
@@ -17,8 +17,8 @@ const plugin = {
17
17
  id: "@alfe.ai/openclaw-metrics",
18
18
  activate(api) {
19
19
  const log = api.logger;
20
- if (!api.runtime) {
21
- log.debug("Management command context — skipping metrics init");
20
+ if (api.registrationMode === "cli-metadata") {
21
+ log.debug("CLI metadata mode — skipping metrics init");
22
22
  return;
23
23
  }
24
24
  if (globalThis.__alfeMetricsPluginActivated === true) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/openclaw-metrics",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "OpenClaw metrics plugin for Alfe — per-user activity tracking",
5
5
  "type": "module",
6
6
  "main": "./dist/plugin.js",
@@ -23,7 +23,7 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "@alfe.ai/config": "^0.0.8",
26
- "@alfe.ai/agent-api-client": "^0.0.7"
26
+ "@alfe.ai/agent-api-client": "^0.0.8"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "openclaw": ">=2026.3.0"