prpm 2.1.33 → 2.1.34
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/index.js +8 -5
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -15448,15 +15448,18 @@ function toCodexServerConfig(server) {
|
|
|
15448
15448
|
const codexServer = {};
|
|
15449
15449
|
if (server.command) {
|
|
15450
15450
|
codexServer.command = server.command;
|
|
15451
|
-
|
|
15452
|
-
|
|
15451
|
+
const envArgs = [];
|
|
15452
|
+
if (server.env && Object.keys(server.env).length > 0) {
|
|
15453
|
+
for (const [key, value] of Object.entries(server.env)) {
|
|
15454
|
+
envArgs.push("--env", `${key}=${value}`);
|
|
15455
|
+
}
|
|
15456
|
+
}
|
|
15457
|
+
if (server.args && server.args.length > 0 || envArgs.length > 0) {
|
|
15458
|
+
codexServer.args = [...server.args || [], ...envArgs];
|
|
15453
15459
|
}
|
|
15454
15460
|
if (server.cwd) {
|
|
15455
15461
|
codexServer.cwd = server.cwd;
|
|
15456
15462
|
}
|
|
15457
|
-
if (server.env && Object.keys(server.env).length > 0) {
|
|
15458
|
-
codexServer.env = server.env;
|
|
15459
|
-
}
|
|
15460
15463
|
}
|
|
15461
15464
|
if (server.url) {
|
|
15462
15465
|
codexServer.url = server.url;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prpm",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.34",
|
|
4
4
|
"description": "Prompt Package Manager CLI - Install and manage prompt-based files",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"license": "MIT",
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@octokit/rest": "^22.0.0",
|
|
48
|
-
"@pr-pm/converters": "^2.1.
|
|
49
|
-
"@pr-pm/registry-client": "^2.3.
|
|
50
|
-
"@pr-pm/types": "^2.1.
|
|
48
|
+
"@pr-pm/converters": "^2.1.35",
|
|
49
|
+
"@pr-pm/registry-client": "^2.3.34",
|
|
50
|
+
"@pr-pm/types": "^2.1.35",
|
|
51
51
|
"ajv": "^8.17.1",
|
|
52
52
|
"ajv-formats": "^3.0.1",
|
|
53
53
|
"chalk": "^5.6.2",
|