@ory/claude-code 0.7.2 → 0.8.0

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/cli/setup.js CHANGED
@@ -120,7 +120,7 @@ function isRemoteContext() {
120
120
  }
121
121
  /** Hook command for a local/global install — runs the built hook directly. */
122
122
  function localHookCommand() {
123
- return `node ${path.join(PACKAGE_ROOT, "dist", "hook.js")}`;
123
+ return `node "${path.join(PACKAGE_ROOT, "dist", "hook.js")}"`;
124
124
  }
125
125
  /**
126
126
  * Assemble the Claude Code plugin directory in the persistent location and
@@ -188,11 +188,17 @@ function cleanPersistentDir() {
188
188
  function claudeScope(isGlobal) {
189
189
  return isGlobal ? "user" : "project";
190
190
  }
191
+ /**
192
+ * On Windows, npm-installed CLIs are `.cmd` shims that Node's spawn only
193
+ * finds via the shell. POSIX shells resolve the bare name directly.
194
+ */
195
+ const SPAWN_VIA_SHELL = process.platform === "win32";
191
196
  /** Run a `claude` CLI command and capture output. */
192
197
  function runClaude(args) {
193
198
  const result = (0, node_child_process_1.spawnSync)("claude", args, {
194
199
  encoding: "utf-8",
195
200
  stdio: ["pipe", "pipe", "pipe"],
201
+ shell: SPAWN_VIA_SHELL,
196
202
  });
197
203
  const output = ((result.stdout ?? "") + (result.stderr ?? "")).trim();
198
204
  return { ok: result.status === 0, output };
@@ -202,6 +208,7 @@ function checkClaudeCli() {
202
208
  const result = (0, node_child_process_1.spawnSync)("claude", ["--version"], {
203
209
  encoding: "utf-8",
204
210
  stdio: ["pipe", "pipe", "pipe"],
211
+ shell: SPAWN_VIA_SHELL,
205
212
  });
206
213
  return result.status === 0;
207
214
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ory/claude-code",
3
- "version": "0.7.2",
3
+ "version": "0.8.0",
4
4
  "description": "Ory plugin for Claude Code: 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://github.com/ory/claude-plugins/tree/master/plugins/ory-agent-plugin",
@@ -75,7 +75,7 @@
75
75
  "!dist/**/*.tsbuildinfo"
76
76
  ],
77
77
  "dependencies": {
78
- "@ory/argus": "0.7.2"
78
+ "@ory/argus": "0.8.0"
79
79
  },
80
80
  "engines": {
81
81
  "node": ">=22"