@ory/claude-code 0.13.7 → 0.13.8

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/main.js CHANGED
@@ -125,7 +125,13 @@ async function status() {
125
125
  // local iteration). Run `claude plugin list` for an authoritative
126
126
  // view of what the `claude` CLI has registered.
127
127
  console.log("Hooks & plugin:");
128
- const assembled = fs.existsSync(PERSISTENT_DIR);
128
+ // The data dir doubles as the default trace/debug-log home, so it exists
129
+ // after any session regardless of install path — its mere presence does
130
+ // NOT mean a plugin was assembled here. `isAssembledFromSource` keys off
131
+ // the `.claude-plugin` manifest, which only the `--from-source` path
132
+ // writes. Production installs delegate to the ory/claude-plugins
133
+ // marketplace and assemble nothing locally.
134
+ const assembled = (0, setup_js_1.isAssembledFromSource)(PERSISTENT_DIR);
129
135
  console.log(` Local --from-source dir: ${assembled ? PERSISTENT_DIR : "(none — production installs use the ory/claude-plugins marketplace; run 'claude plugin list' to see registered plugins)"}`);
130
136
  if (assembled) {
131
137
  console.log(` Skills: ${fs.existsSync(path.join(PERSISTENT_DIR, "skills")) ? "installed" : "not installed"}`);
@@ -8,6 +8,17 @@
8
8
  * npx ory-claude-setup --from-source # Install from the local source tree (dev only)
9
9
  * npx ory-claude-setup --uninstall # Remove plugin
10
10
  */
11
+ /**
12
+ * Whether a `--from-source` plugin was assembled into `dir`.
13
+ *
14
+ * The data dir doubles as the default trace/debug-log home (`fromEnv` writes
15
+ * `ory-agent-trace.ndjson` / `ory-agent-debug.log` there on every session), so
16
+ * its mere existence does NOT indicate a local assembly — a production
17
+ * marketplace install that has run once already creates it. The plugin
18
+ * manifest (`.claude-plugin`) is written only by {@link assemblePluginDir}, so
19
+ * it's the reliable signal that this dir holds a from-source plugin.
20
+ */
21
+ export declare function isAssembledFromSource(dir: string): boolean;
11
22
  /**
12
23
  * Install the Ory plugin via the `claude` CLI.
13
24
  *
package/dist/cli/setup.js CHANGED
@@ -43,6 +43,7 @@ var __importStar = (this && this.__importStar) || (function () {
43
43
  };
44
44
  })();
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
+ exports.isAssembledFromSource = isAssembledFromSource;
46
47
  exports.install = install;
47
48
  exports.uninstall = uninstall;
48
49
  const node_child_process_1 = require("node:child_process");
@@ -177,6 +178,19 @@ function assemblePluginDir(hookCommand) {
177
178
  }, null, 2) + "\n");
178
179
  return PERSISTENT_DIR;
179
180
  }
181
+ /**
182
+ * Whether a `--from-source` plugin was assembled into `dir`.
183
+ *
184
+ * The data dir doubles as the default trace/debug-log home (`fromEnv` writes
185
+ * `ory-agent-trace.ndjson` / `ory-agent-debug.log` there on every session), so
186
+ * its mere existence does NOT indicate a local assembly — a production
187
+ * marketplace install that has run once already creates it. The plugin
188
+ * manifest (`.claude-plugin`) is written only by {@link assemblePluginDir}, so
189
+ * it's the reliable signal that this dir holds a from-source plugin.
190
+ */
191
+ function isAssembledFromSource(dir) {
192
+ return fs.existsSync(path.join(dir, ".claude-plugin"));
193
+ }
180
194
  /** Remove the persistent install directory if it exists. */
181
195
  function cleanPersistentDir() {
182
196
  if (fs.existsSync(PERSISTENT_DIR)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ory/claude-code",
3
- "version": "0.13.7",
3
+ "version": "0.13.8",
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",
@@ -76,7 +76,7 @@
76
76
  ],
77
77
  "dependencies": {
78
78
  "reo-census": "^1.2.8",
79
- "@ory/argus": "0.13.7"
79
+ "@ory/argus": "0.13.8"
80
80
  },
81
81
  "engines": {
82
82
  "node": ">=22"