prpm 2.1.25 → 2.1.27

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 +10 -6
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -14948,7 +14948,7 @@ function getCodexMCPConfigPath(global2 = false, projectDir = process.cwd()) {
14948
14948
  if (global2) {
14949
14949
  return (0, import_path11.join)((0, import_os3.homedir)(), ".codex", "config.toml");
14950
14950
  }
14951
- return (0, import_path11.join)(projectDir, "codex.toml");
14951
+ return (0, import_path11.join)(projectDir, ".codex", "config.toml");
14952
14952
  }
14953
14953
  function getCursorMCPConfigPath(global2 = false, projectDir = process.cwd()) {
14954
14954
  if (global2) {
@@ -15009,7 +15009,7 @@ function getZedMCPConfigPath() {
15009
15009
  function getMCPConfigLocation(editor, global2) {
15010
15010
  switch (editor) {
15011
15011
  case "codex":
15012
- return global2 ? "~/.codex/config.toml" : "codex.toml";
15012
+ return global2 ? "~/.codex/config.toml" : ".codex/config.toml";
15013
15013
  case "cursor":
15014
15014
  return global2 ? "~/.cursor/mcp.json" : ".cursor/mcp.json";
15015
15015
  case "windsurf":
@@ -17494,8 +17494,12 @@ async function handleInstall(packageSpec, options) {
17494
17494
  console.log(` \u{1FA9D} Hook (merges into .claude/settings.json)`);
17495
17495
  }
17496
17496
  }
17497
+ const isMCPServerPackage = pkg.format === "mcp";
17498
+ const isPluginPackage = pkg.format === "claude" && pkg.subtype === "plugin";
17497
17499
  let format = options.as;
17498
- if (!format) {
17500
+ if (isMCPServerPackage || isPluginPackage) {
17501
+ format = format || pkg.format;
17502
+ } else if (!format) {
17499
17503
  if (config.defaultFormat) {
17500
17504
  format = config.defaultFormat;
17501
17505
  console.log(` \u2699\uFE0F Using default format from config: ${format}`);
@@ -17849,7 +17853,7 @@ This could indicate:
17849
17853
  }
17850
17854
  destPath = ".claude/";
17851
17855
  fileCount = installedFiles.length;
17852
- } else if (effectiveFormat === "mcp" && effectiveSubtype === "server") {
17856
+ } else if (effectiveFormat === "mcp" && (effectiveSubtype === "server" || effectiveSubtype === "tool")) {
17853
17857
  console.log(` \u{1F527} Installing MCP Server...`);
17854
17858
  const mcpServerFile = extractedFiles.find(
17855
17859
  (f) => f.name === "mcp-server.json" || f.name.endsWith("/mcp-server.json") || f.name.endsWith(".json") && !f.name.includes("/")
@@ -18314,7 +18318,7 @@ ${afterFrontmatter}`;
18314
18318
  console.log(` \u{1F4E6} Installed ${pluginMetadata.files.length} file(s)`);
18315
18319
  if (pluginMetadata.mcpServers && Object.keys(pluginMetadata.mcpServers).length > 0) {
18316
18320
  const serverCount = Object.keys(pluginMetadata.mcpServers).length;
18317
- const location = pluginMetadata.mcpGlobal ? "~/.claude/settings.json" : ".mcp.json";
18321
+ const location = getMCPConfigLocation(pluginMetadata.mcpEditor || "claude", pluginMetadata.mcpGlobal || false);
18318
18322
  console.log(` \u{1F527} Configured ${serverCount} MCP server(s) in ${location}`);
18319
18323
  }
18320
18324
  }
@@ -18560,7 +18564,7 @@ Supported editors: ${MCP_EDITORS.join(", ")}
18560
18564
 
18561
18565
  \u{1F4A1} Examples:
18562
18566
  prpm install my-mcp-server --editor claude # Install to .mcp.json
18563
- prpm install my-mcp-server --editor codex # Install to codex.toml
18567
+ prpm install my-mcp-server --editor codex # Install to .codex/config.toml
18564
18568
  prpm install my-mcp-server --editor cursor # Install to .cursor/mcp.json
18565
18569
  prpm install my-mcp-server --editor windsurf # Install to ~/.codeium/windsurf/mcp_config.json
18566
18570
  prpm install my-mcp-server --editor vscode # Install to .vscode/mcp.json
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prpm",
3
- "version": "2.1.25",
3
+ "version": "2.1.27",
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.26",
49
- "@pr-pm/registry-client": "^2.3.25",
50
- "@pr-pm/types": "^2.1.26",
48
+ "@pr-pm/converters": "^2.1.28",
49
+ "@pr-pm/registry-client": "^2.3.27",
50
+ "@pr-pm/types": "^2.1.28",
51
51
  "ajv": "^8.17.1",
52
52
  "ajv-formats": "^3.0.1",
53
53
  "chalk": "^5.6.2",