prpm 2.1.32 → 2.1.33
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 +3 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -17975,7 +17975,8 @@ This could indicate:
|
|
|
17975
17975
|
const effectiveFormat = format || pkg.format;
|
|
17976
17976
|
const effectiveSubtype = options.subtype || pkg.subtype;
|
|
17977
17977
|
let extractedFiles = await extractTarball(tarball, packageId);
|
|
17978
|
-
|
|
17978
|
+
const isMCPToEditor = isMCPServerPackage && MCP_EDITORS.includes(format);
|
|
17979
|
+
if (options.as && format && format !== pkg.format && effectiveSubtype !== "snippet" && !isMCPToEditor) {
|
|
17979
17980
|
console.log(` \u{1F504} Converting from ${pkg.format} to ${format}...`);
|
|
17980
17981
|
let sourceContent;
|
|
17981
17982
|
if (extractedFiles.length === 1) {
|
|
@@ -18249,7 +18250,7 @@ This could indicate:
|
|
|
18249
18250
|
}
|
|
18250
18251
|
destPath = ".claude/";
|
|
18251
18252
|
fileCount = installedFiles.length;
|
|
18252
|
-
} else if (effectiveFormat === "mcp" && (effectiveSubtype === "server" || effectiveSubtype === "tool")) {
|
|
18253
|
+
} else if (effectiveFormat === "mcp" && (effectiveSubtype === "server" || effectiveSubtype === "tool") || isMCPServerPackage && (pkg.subtype === "server" || pkg.subtype === "tool") && isMCPToEditor) {
|
|
18253
18254
|
console.log(` \u{1F527} Installing MCP Server...`);
|
|
18254
18255
|
const mcpServerFile = extractedFiles.find(
|
|
18255
18256
|
(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.
|
|
3
|
+
"version": "2.1.33",
|
|
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.34",
|
|
49
|
+
"@pr-pm/registry-client": "^2.3.33",
|
|
50
|
+
"@pr-pm/types": "^2.1.34",
|
|
51
51
|
"ajv": "^8.17.1",
|
|
52
52
|
"ajv-formats": "^3.0.1",
|
|
53
53
|
"chalk": "^5.6.2",
|