@ory/openclaw 0.8.0 → 0.8.2
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.js +12 -1
- package/package.json +2 -2
package/dist/plugin.js
CHANGED
|
@@ -264,7 +264,18 @@ function createBeforeToolCallHandler(client) {
|
|
|
264
264
|
return { block: true, blockReason };
|
|
265
265
|
}
|
|
266
266
|
const namespace = resolveNamespace();
|
|
267
|
-
const
|
|
267
|
+
const outcome = await (0, argus_1.gateToolCall)(client, {
|
|
268
|
+
harness: "openclaw",
|
|
269
|
+
toolName: ctx.toolId,
|
|
270
|
+
check: { namespace, object: ctx.toolId, relation: "use", ...subject },
|
|
271
|
+
spanAttributes: { toolName: ctx.toolId },
|
|
272
|
+
});
|
|
273
|
+
// Interactive tools (operator-extensible via ORY_INTERACTIVE_TOOLS):
|
|
274
|
+
// the user.interaction span is already recorded; pass through.
|
|
275
|
+
if (outcome.kind === "interactive") {
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
const decision = outcome;
|
|
268
279
|
if (decision.kind === "fail_open") {
|
|
269
280
|
handlePermissionError(decision.error, ctx.toolId, client);
|
|
270
281
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ory/openclaw",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "Ory plugin for OpenClaw: scaffolding skills, a local Ory instance, and authentication, authorization, and audit for every tool call",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://ory.com",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"!dist/**/*.tsbuildinfo"
|
|
66
66
|
],
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@ory/argus": "0.8.
|
|
68
|
+
"@ory/argus": "0.8.2"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": ">=22"
|