prpm 2.1.25 → 2.1.26
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 +7 -3
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -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 (
|
|
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.
|
|
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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prpm",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.26",
|
|
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.27",
|
|
49
|
+
"@pr-pm/registry-client": "^2.3.26",
|
|
50
|
+
"@pr-pm/types": "^2.1.27",
|
|
51
51
|
"ajv": "^8.17.1",
|
|
52
52
|
"ajv-formats": "^3.0.1",
|
|
53
53
|
"chalk": "^5.6.2",
|