prpm 2.1.33 → 2.1.35

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -10
  2. 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
- if (server.args && server.args.length > 0) {
15452
- codexServer.args = server.args;
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;
@@ -24729,11 +24732,10 @@ async function handleUpdate(packageName, options = {}) {
24729
24732
  `
24730
24733
  \u{1F4E6} Updating ${packageId}: ${currentVersion} \u2192 ${latestVersion}`
24731
24734
  );
24732
- const installOptions = {};
24733
- if (installedFormat && installedFormat !== pkg.sourceFormat) {
24734
- installOptions.as = installedFormat;
24735
- }
24736
- await handleInstall(`${packageId}@${latestVersion}`, installOptions);
24735
+ const targetFormat = pkg.format || installedFormat;
24736
+ await handleInstall(`${packageId}@${latestVersion}`, {
24737
+ as: targetFormat
24738
+ });
24737
24739
  updatedCount++;
24738
24740
  } catch (err) {
24739
24741
  console.error(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prpm",
3
- "version": "2.1.33",
3
+ "version": "2.1.35",
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.34",
49
- "@pr-pm/registry-client": "^2.3.33",
50
- "@pr-pm/types": "^2.1.34",
48
+ "@pr-pm/converters": "^2.1.36",
49
+ "@pr-pm/registry-client": "^2.3.35",
50
+ "@pr-pm/types": "^2.1.36",
51
51
  "ajv": "^8.17.1",
52
52
  "ajv-formats": "^3.0.1",
53
53
  "chalk": "^5.6.2",