@ory/codex 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 +7 -0
- package/package.json +2 -2
package/dist/cli/setup.js
CHANGED
|
@@ -92,10 +92,16 @@ function readPackageVersion() {
|
|
|
92
92
|
return "0.0.0";
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* On Windows, npm-installed CLIs are `.cmd` shims that Node's spawn only
|
|
97
|
+
* finds via the shell. POSIX shells resolve the bare name directly.
|
|
98
|
+
*/
|
|
99
|
+
const SPAWN_VIA_SHELL = process.platform === "win32";
|
|
95
100
|
function runCodex(args) {
|
|
96
101
|
const result = (0, node_child_process_1.spawnSync)("codex", args, {
|
|
97
102
|
encoding: "utf-8",
|
|
98
103
|
stdio: ["pipe", "pipe", "pipe"],
|
|
104
|
+
shell: SPAWN_VIA_SHELL,
|
|
99
105
|
});
|
|
100
106
|
const output = ((result.stdout ?? "") + (result.stderr ?? "")).trim();
|
|
101
107
|
return { ok: result.status === 0, output };
|
|
@@ -104,6 +110,7 @@ function checkCodexCli() {
|
|
|
104
110
|
const result = (0, node_child_process_1.spawnSync)("codex", ["--version"], {
|
|
105
111
|
encoding: "utf-8",
|
|
106
112
|
stdio: ["pipe", "pipe", "pipe"],
|
|
113
|
+
shell: SPAWN_VIA_SHELL,
|
|
107
114
|
});
|
|
108
115
|
return result.status === 0;
|
|
109
116
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ory/codex",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Ory plugin for Codex: 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",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"marketplace"
|
|
67
67
|
],
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@ory/argus": "0.
|
|
69
|
+
"@ory/argus": "0.8.0"
|
|
70
70
|
},
|
|
71
71
|
"engines": {
|
|
72
72
|
"node": ">=22"
|