@alfe.ai/openclaw-identity 0.0.6 → 0.0.7

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
@@ -16,6 +16,7 @@ let _sinclair_typebox = require("@sinclair/typebox");
16
16
  * All data access via AgentApiClient (/agent/identity/* routes).
17
17
  * Uses the agent's own API key (from ~/.alfe/config.toml) for authentication.
18
18
  */
19
+ const pkg = (0, require("node:module").createRequire)(require("url").pathToFileURL(__filename).href)("../package.json");
19
20
  const CACHE_TTL_MS = 6e4;
20
21
  const sessionCache = /* @__PURE__ */ new Map();
21
22
  function getCached(key) {
@@ -70,7 +71,7 @@ const plugin = {
70
71
  id: "@alfe.ai/openclaw-identity",
71
72
  name: "Alfe Identity",
72
73
  description: "Identity resolution, access gating, and permission enforcement",
73
- version: "0.0.1",
74
+ version: pkg.version,
74
75
  activate(api) {
75
76
  const log = api.logger;
76
77
  if (api.registrationMode && api.registrationMode !== "full") return;
package/dist/plugin.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { createRequire } from "node:module";
1
2
  import { resolveConfig } from "@alfe.ai/config";
2
3
  import { AgentApiClient } from "@alfe.ai/agent-api-client";
3
4
  import { Type } from "@sinclair/typebox";
@@ -16,6 +17,7 @@ import { Type } from "@sinclair/typebox";
16
17
  * All data access via AgentApiClient (/agent/identity/* routes).
17
18
  * Uses the agent's own API key (from ~/.alfe/config.toml) for authentication.
18
19
  */
20
+ const pkg = createRequire(import.meta.url)("../package.json");
19
21
  const CACHE_TTL_MS = 6e4;
20
22
  const sessionCache = /* @__PURE__ */ new Map();
21
23
  function getCached(key) {
@@ -70,7 +72,7 @@ const plugin = {
70
72
  id: "@alfe.ai/openclaw-identity",
71
73
  name: "Alfe Identity",
72
74
  description: "Identity resolution, access gating, and permission enforcement",
73
- version: "0.0.1",
75
+ version: pkg.version,
74
76
  activate(api) {
75
77
  const log = api.logger;
76
78
  if (api.registrationMode && api.registrationMode !== "full") return;
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "id": "@alfe.ai/openclaw-identity",
3
3
  "name": "Alfe Identity",
4
- "version": "0.0.1",
5
4
  "description": "Identity resolution, access gating, and permission enforcement",
6
5
  "entry": "./dist/plugin.js",
7
6
  "configSchema": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/openclaw-identity",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "OpenClaw identity plugin — identity resolution, access gating, permission enforcement",
5
5
  "type": "module",
6
6
  "main": "./dist/plugin.js",