@ory/gemini-cli 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.
Files changed (2) hide show
  1. package/dist/handlers.js +12 -1
  2. package/package.json +2 -2
package/dist/handlers.js CHANGED
@@ -206,7 +206,18 @@ async function handleBeforeTool(input, client) {
206
206
  };
207
207
  }
208
208
  const namespace = resolveNamespace();
209
- const decision = await (0, argus_1.checkAndDecide)(client, { namespace, object: toolName, relation: "use", ...subject }, { spanAttributes: { toolName } });
209
+ const outcome = await (0, argus_1.gateToolCall)(client, {
210
+ harness: "gemini-cli",
211
+ toolName,
212
+ check: { namespace, object: toolName, relation: "use", ...subject },
213
+ spanAttributes: { toolName },
214
+ });
215
+ // Interactive tools (operator-extensible via ORY_INTERACTIVE_TOOLS):
216
+ // user.interaction span is already recorded; pass through.
217
+ if (outcome.kind === "interactive") {
218
+ return {};
219
+ }
220
+ const decision = outcome;
210
221
  if (decision.kind === "fail_open") {
211
222
  return handlePermissionError(decision.error, toolName, client);
212
223
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ory/gemini-cli",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "Ory extension for Gemini CLI: 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",
@@ -68,7 +68,7 @@
68
68
  "gemini-extension"
69
69
  ],
70
70
  "dependencies": {
71
- "@ory/argus": "0.8.0"
71
+ "@ory/argus": "0.8.2"
72
72
  },
73
73
  "engines": {
74
74
  "node": ">=22"