@ory/argus 0.13.0 → 0.13.1

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.
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "repo": "ory-agent-plugins",
3
- "commit": "2702eaeaad8d59305e3605a1543b47c6222b4967",
4
- "commitShort": "2702eae",
3
+ "commit": "8a7c3508e54376b6dda634dc54f8c5891d499a7a",
4
+ "commitShort": "8a7c350",
5
5
  "branch": "main",
6
- "commitDate": "2026-07-14T10:53:59-07:00",
6
+ "commitDate": "2026-07-14T12:09:14-07:00",
7
7
  "dirty": false,
8
- "builtAt": "2026-07-14T17:57:49.846Z"
8
+ "builtAt": "2026-07-14T19:13:39.008Z"
9
9
  }
@@ -83,6 +83,7 @@ const tool_catalog_js_1 = require("./tool-catalog.js");
83
83
  const index_js_1 = require("./local/index.js");
84
84
  const subject_js_1 = require("./subject.js");
85
85
  const permissions_cli_js_1 = require("./permissions-cli.js");
86
+ const version_cli_js_1 = require("./version-cli.js");
86
87
  const ui = __importStar(require("./ui.js"));
87
88
  /** Loopback redirect URIs the PKCE user login expects on the OAuth2 client. */
88
89
  exports.LOOPBACK_REDIRECT_URIS = auth_js_1.LOOPBACK_PORTS.map((port) => `http://127.0.0.1:${port}/callback`);
@@ -155,6 +156,17 @@ async function installOryCli() {
155
156
  * open-coded as a local `postInstallPermissions` helper.
156
157
  */
157
158
  async function runPostInstall(binName, harness, args = [], deps = {}) {
159
+ // Surface the running CLI version up front. `npx -p @ory/<harness>` (no
160
+ // version pin) will happily reuse a previously-cached install rather than
161
+ // re-resolve to latest, so a user can silently be running an old CLI whose
162
+ // install flow predates newer behavior (e.g. the interactive setup wizard)
163
+ // while believing they're on the current release. Printing the version makes
164
+ // that mismatch visible at a glance; the README's troubleshooting note
165
+ // explains how to clear a stale npx cache.
166
+ const cliVersion = (0, version_cli_js_1.resolveCoreVersion)();
167
+ if (cliVersion !== "unknown") {
168
+ ui.info(`${binName} v${cliVersion}`);
169
+ }
158
170
  const result = await runInteractiveSetup(binName, harness, args, deps);
159
171
  // The Ory Network wizard path bootstraps permissions itself (via the
160
172
  // admin-authenticated `ory` CLI). Only fall back to the DCR-token bootstrap
@@ -26,6 +26,13 @@ export interface BuildInfo {
26
26
  * `unknown`.
27
27
  */
28
28
  export declare function resolveBuildInfo(): BuildInfo;
29
+ /**
30
+ * Resolve the `@ory/argus` core version from this module's own package.json.
31
+ * Exported so the install flow can surface the running CLI version — every
32
+ * `@ory/*` package releases in lockstep, so the core version is the release
33
+ * version of whatever plugin CLI is executing.
34
+ */
35
+ export declare function resolveCoreVersion(): string;
29
36
  export interface VersionInfo {
30
37
  plugin: {
31
38
  name: string;
@@ -34,6 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.resolveBuildInfo = resolveBuildInfo;
37
+ exports.resolveCoreVersion = resolveCoreVersion;
37
38
  exports.collectVersionInfo = collectVersionInfo;
38
39
  exports.runVersionCommand = runVersionCommand;
39
40
  /**
@@ -158,7 +159,12 @@ function readPackageMeta(packageRoot) {
158
159
  return { name: "unknown", version: "0.0.0" };
159
160
  }
160
161
  }
161
- /** Resolve the `@ory/argus` core version from this module's own package.json. */
162
+ /**
163
+ * Resolve the `@ory/argus` core version from this module's own package.json.
164
+ * Exported so the install flow can surface the running CLI version — every
165
+ * `@ory/*` package releases in lockstep, so the core version is the release
166
+ * version of whatever plugin CLI is executing.
167
+ */
162
168
  function resolveCoreVersion() {
163
169
  let dir = __dirname;
164
170
  for (let i = 0; i < 5; i++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ory/argus",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Ory Argus: the core API for building authentication, authorization, and audit into AI agent harness plugins, extensions, and custom integrations",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://ory.com",