@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 +2 -1
- package/dist/plugin.js +3 -1
- package/openclaw.plugin.json +0 -1
- package/package.json +1 -1
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:
|
|
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:
|
|
75
|
+
version: pkg.version,
|
|
74
76
|
activate(api) {
|
|
75
77
|
const log = api.logger;
|
|
76
78
|
if (api.registrationMode && api.registrationMode !== "full") return;
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED