prpm 2.1.32 → 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.
Files changed (2) hide show
  1. package/dist/index.js +11 -7
  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;
@@ -17975,7 +17978,8 @@ This could indicate:
17975
17978
  const effectiveFormat = format || pkg.format;
17976
17979
  const effectiveSubtype = options.subtype || pkg.subtype;
17977
17980
  let extractedFiles = await extractTarball(tarball, packageId);
17978
- if (options.as && format && format !== pkg.format && effectiveSubtype !== "snippet") {
17981
+ const isMCPToEditor = isMCPServerPackage && MCP_EDITORS.includes(format);
17982
+ if (options.as && format && format !== pkg.format && effectiveSubtype !== "snippet" && !isMCPToEditor) {
17979
17983
  console.log(` \u{1F504} Converting from ${pkg.format} to ${format}...`);
17980
17984
  let sourceContent;
17981
17985
  if (extractedFiles.length === 1) {
@@ -18249,7 +18253,7 @@ This could indicate:
18249
18253
  }
18250
18254
  destPath = ".claude/";
18251
18255
  fileCount = installedFiles.length;
18252
- } else if (effectiveFormat === "mcp" && (effectiveSubtype === "server" || effectiveSubtype === "tool")) {
18256
+ } else if (effectiveFormat === "mcp" && (effectiveSubtype === "server" || effectiveSubtype === "tool") || isMCPServerPackage && (pkg.subtype === "server" || pkg.subtype === "tool") && isMCPToEditor) {
18253
18257
  console.log(` \u{1F527} Installing MCP Server...`);
18254
18258
  const mcpServerFile = extractedFiles.find(
18255
18259
  (f) => f.name === "mcp-server.json" || f.name.endsWith("/mcp-server.json") || f.name.endsWith(".json") && !f.name.includes("/")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prpm",
3
- "version": "2.1.32",
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.33",
49
- "@pr-pm/registry-client": "^2.3.32",
50
- "@pr-pm/types": "^2.1.33",
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",