@opentrust/guards 7.3.23 → 7.3.25
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/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/plugin/lifecycle.ts +6 -1
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "opentrust-guard",
|
|
3
3
|
"name": "OpenTrust Guard",
|
|
4
4
|
"description": "AI security guard for OpenClaw agents: prompt injection detection, credential scanning, and behavioral monitoring.",
|
|
5
|
-
"version": "7.3.
|
|
5
|
+
"version": "7.3.25",
|
|
6
6
|
"configSchema": {
|
|
7
7
|
"type": "object",
|
|
8
8
|
"additionalProperties": false,
|
package/package.json
CHANGED
package/plugin/lifecycle.ts
CHANGED
|
@@ -89,6 +89,7 @@ function startProfileSync(log: Logger, state: PluginState): void {
|
|
|
89
89
|
.updateProfile({
|
|
90
90
|
...(state.coreCredentials?.agentId !== "configured" ? { openclawId: state.coreCredentials?.agentId } : {}),
|
|
91
91
|
...profile,
|
|
92
|
+
hostname: os.hostname(),
|
|
92
93
|
})
|
|
93
94
|
.catch((err) => log.debug?.(`Dashboard: profile sync failed — ${err}`));
|
|
94
95
|
}, 2000);
|
|
@@ -199,7 +200,11 @@ export function register(
|
|
|
199
200
|
name: config.agentName,
|
|
200
201
|
description: "OpenClaw AI Agent secured by OpenTrust",
|
|
201
202
|
provider: profile.provider || undefined,
|
|
202
|
-
metadata: {
|
|
203
|
+
metadata: {
|
|
204
|
+
...(creds.agentId !== "configured" ? { openclawId: creds.agentId } : {}),
|
|
205
|
+
...profile,
|
|
206
|
+
hostname: os.hostname(),
|
|
207
|
+
},
|
|
203
208
|
}).then((r) => {
|
|
204
209
|
if (r.success && r.data?.id) {
|
|
205
210
|
log.debug?.(`Dashboard: agent registered (${r.data.id})`);
|