@ory/argus 0.7.2 → 0.7.3
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/config.js +2 -1
- package/dist/setup.js +3 -3
- package/package.json +1 -1
package/dist/config.js
CHANGED
|
@@ -42,6 +42,7 @@ exports.mutateConfig = mutateConfig;
|
|
|
42
42
|
exports.resolveConfig = resolveConfig;
|
|
43
43
|
exports.configPromptMessage = configPromptMessage;
|
|
44
44
|
const fs = __importStar(require("node:fs"));
|
|
45
|
+
const os = __importStar(require("node:os"));
|
|
45
46
|
const path = __importStar(require("node:path"));
|
|
46
47
|
/**
|
|
47
48
|
* Single OS-agnostic data directory for *all* Ory agent plugin state:
|
|
@@ -92,7 +93,7 @@ const LOCK_POLL_MS = 25;
|
|
|
92
93
|
/** Maximum total time to wait for the lock before giving up. */
|
|
93
94
|
const LOCK_TIMEOUT_MS = 5_000;
|
|
94
95
|
function getHomeDir() {
|
|
95
|
-
return
|
|
96
|
+
return os.homedir();
|
|
96
97
|
}
|
|
97
98
|
/**
|
|
98
99
|
* Return the path to the config file.
|
package/dist/setup.js
CHANGED
|
@@ -53,6 +53,7 @@ exports.unregisterPlugin = unregisterPlugin;
|
|
|
53
53
|
exports.printSetupHelp = printSetupHelp;
|
|
54
54
|
exports.printNextSteps = printNextSteps;
|
|
55
55
|
const fs = __importStar(require("node:fs"));
|
|
56
|
+
const os = __importStar(require("node:os"));
|
|
56
57
|
const path = __importStar(require("node:path"));
|
|
57
58
|
// ─── Arg Parsing ───────────────────────────────────────────────────
|
|
58
59
|
/**
|
|
@@ -126,7 +127,7 @@ function resolveHookCommand(packageName, binName) {
|
|
|
126
127
|
// The package root resolves to the main entry (dist/index.js).
|
|
127
128
|
// The hook script lives alongside it as dist/hook.js.
|
|
128
129
|
const hookPath = path.resolve(path.dirname(binPath), "hook.js");
|
|
129
|
-
return `node ${hookPath}`;
|
|
130
|
+
return `node "${hookPath}"`;
|
|
130
131
|
}
|
|
131
132
|
catch {
|
|
132
133
|
return binName;
|
|
@@ -273,8 +274,7 @@ function removeMcpServer(existing) {
|
|
|
273
274
|
* Get the path to the Claude Code plugins registry file.
|
|
274
275
|
*/
|
|
275
276
|
function getPluginsRegistryPath() {
|
|
276
|
-
|
|
277
|
-
return path.join(home, ".claude", "plugins", "installed_plugins.json");
|
|
277
|
+
return path.join(os.homedir(), ".claude", "plugins", "installed_plugins.json");
|
|
278
278
|
}
|
|
279
279
|
/**
|
|
280
280
|
* Read the Claude Code plugins registry.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ory/argus",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
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",
|