prpm 2.1.26 → 2.1.28
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 +20 -16
- 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":
|
|
@@ -18541,9 +18541,11 @@ async function installFromLockfile(options) {
|
|
|
18541
18541
|
}
|
|
18542
18542
|
function createInstallCommand() {
|
|
18543
18543
|
const command = new import_commander12.Command("install");
|
|
18544
|
-
command.description("Install a package from the registry, or install all packages from prpm.lock if no package specified").argument("[package]", "Package to install (e.g., react-rules or react-rules@1.2.0). If omitted, installs all packages from prpm.lock").option("--version <version>", "Specific version to install").option("--as <format>", `Convert and install in specific format (${import_types.FORMATS.join(", ")})`).option("--format <format>", "Alias for --as").option("--location <path>", "Custom location for installed files (Agents.md or nested Cursor rules)").option("--subtype <subtype>", "Specify subtype when converting (skill, agent, rule, etc.)").option("--hook-mapping <strategy>", "Hook mapping strategy: auto (default), strict, skip", "auto").option("--frozen-lockfile", "Fail if lock file needs to be updated (for CI)").option("-y, --yes", "Auto-confirm prompts (overwrite files without asking)").option("--no-append", "Skip adding skill to manifest file (skill files only)").option("--manifest-file <filename>", "Custom manifest filename for progressive disclosure").option("--eager", "Force skill/agent to always activate (not on-demand)").option("--lazy", "Use default on-demand activation (overrides package eager setting)").option("--global", "Install MCP servers to global config (e.g., ~/.claude/settings.json, ~/.codex/config.toml, ~/.cursor/mcp.json, ~/.kiro/settings/mcp.json)").option("--editor <editor>", "Target editor for MCP server installation
|
|
18545
|
-
const
|
|
18544
|
+
command.description("Install a package from the registry, or install all packages from prpm.lock if no package specified").argument("[package]", "Package to install (e.g., react-rules or react-rules@1.2.0). If omitted, installs all packages from prpm.lock").option("--version <version>", "Specific version to install").option("--as <format>", `Convert and install in specific format (${import_types.FORMATS.join(", ")})`).option("--format <format>", "Alias for --as").option("--location <path>", "Custom location for installed files (Agents.md or nested Cursor rules)").option("--subtype <subtype>", "Specify subtype when converting (skill, agent, rule, etc.)").option("--hook-mapping <strategy>", "Hook mapping strategy: auto (default), strict, skip", "auto").option("--frozen-lockfile", "Fail if lock file needs to be updated (for CI)").option("-y, --yes", "Auto-confirm prompts (overwrite files without asking)").option("--no-append", "Skip adding skill to manifest file (skill files only)").option("--manifest-file <filename>", "Custom manifest filename for progressive disclosure").option("--eager", "Force skill/agent to always activate (not on-demand)").option("--lazy", "Use default on-demand activation (overrides package eager setting)").option("--global", "Install MCP servers to global config (e.g., ~/.claude/settings.json, ~/.codex/config.toml, ~/.cursor/mcp.json, ~/.kiro/settings/mcp.json)").option("--editor <editor>", "[Deprecated: use --as] Target editor for MCP server installation").action(async (packageSpec, options) => {
|
|
18545
|
+
const rawAs = options.format || options.as;
|
|
18546
18546
|
const validFormats = import_types.FORMATS;
|
|
18547
|
+
const isMCPEditorOnly = rawAs && !validFormats.includes(rawAs) && MCP_EDITORS.includes(rawAs);
|
|
18548
|
+
const convertTo = isMCPEditorOnly ? void 0 : rawAs;
|
|
18547
18549
|
if (convertTo && !validFormats.includes(convertTo)) {
|
|
18548
18550
|
throw new CLIError(`\u274C Format must be one of: ${validFormats.join(", ")}
|
|
18549
18551
|
|
|
@@ -18554,8 +18556,10 @@ function createInstallCommand() {
|
|
|
18554
18556
|
prpm install my-package --format kiro # Convert to Kiro format
|
|
18555
18557
|
prpm install my-package --format agents.md # Convert to Agents.md format
|
|
18556
18558
|
prpm install my-package --format gemini.md # Convert to Gemini format
|
|
18559
|
+
prpm install my-mcp-server --as codex # Install MCP server to Codex
|
|
18557
18560
|
prpm install my-package # Install in native format`, 1);
|
|
18558
18561
|
}
|
|
18562
|
+
const mcpEditor = options.editor || rawAs;
|
|
18559
18563
|
if (options.editor && !MCP_EDITORS.includes(options.editor)) {
|
|
18560
18564
|
throw new CLIError(
|
|
18561
18565
|
`Invalid MCP editor: ${options.editor}
|
|
@@ -18563,17 +18567,17 @@ function createInstallCommand() {
|
|
|
18563
18567
|
Supported editors: ${MCP_EDITORS.join(", ")}
|
|
18564
18568
|
|
|
18565
18569
|
\u{1F4A1} Examples:
|
|
18566
|
-
prpm install my-mcp-server --
|
|
18567
|
-
prpm install my-mcp-server --
|
|
18568
|
-
prpm install my-mcp-server --
|
|
18569
|
-
prpm install my-mcp-server --
|
|
18570
|
-
prpm install my-mcp-server --
|
|
18571
|
-
prpm install my-mcp-server --
|
|
18572
|
-
prpm install my-mcp-server --
|
|
18573
|
-
prpm install my-mcp-server --
|
|
18574
|
-
prpm install my-mcp-server --
|
|
18575
|
-
prpm install my-mcp-server --
|
|
18576
|
-
prpm install my-mcp-server --
|
|
18570
|
+
prpm install my-mcp-server --as claude # Install to .mcp.json
|
|
18571
|
+
prpm install my-mcp-server --as codex # Install to .codex/config.toml
|
|
18572
|
+
prpm install my-mcp-server --as cursor # Install to .cursor/mcp.json
|
|
18573
|
+
prpm install my-mcp-server --as windsurf # Install to ~/.codeium/windsurf/mcp_config.json
|
|
18574
|
+
prpm install my-mcp-server --as vscode # Install to .vscode/mcp.json
|
|
18575
|
+
prpm install my-mcp-server --as gemini # Install to .gemini/settings.json
|
|
18576
|
+
prpm install my-mcp-server --as opencode # Install to opencode.json
|
|
18577
|
+
prpm install my-mcp-server --as kiro # Install to .kiro/settings/mcp.json
|
|
18578
|
+
prpm install my-mcp-server --as trae # Install to .trae/mcp.json
|
|
18579
|
+
prpm install my-mcp-server --as amp # Install to .amp/settings.json
|
|
18580
|
+
prpm install my-mcp-server --as zed # Install to ~/.config/zed/settings.json`
|
|
18577
18581
|
);
|
|
18578
18582
|
}
|
|
18579
18583
|
if (options.hookMapping && !isValidHookMappingStrategy(options.hookMapping)) {
|
|
@@ -18606,7 +18610,7 @@ Valid strategies: ${VALID_HOOK_MAPPING_STRATEGIES.join(", ")}`
|
|
|
18606
18610
|
hookMapping: options.hookMapping,
|
|
18607
18611
|
eager,
|
|
18608
18612
|
global: options.global,
|
|
18609
|
-
editor:
|
|
18613
|
+
editor: mcpEditor
|
|
18610
18614
|
});
|
|
18611
18615
|
});
|
|
18612
18616
|
return command;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prpm",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.28",
|
|
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.29",
|
|
49
|
+
"@pr-pm/registry-client": "^2.3.28",
|
|
50
|
+
"@pr-pm/types": "^2.1.29",
|
|
51
51
|
"ajv": "^8.17.1",
|
|
52
52
|
"ajv-formats": "^3.0.1",
|
|
53
53
|
"chalk": "^5.6.2",
|