prpm 2.1.3 → 2.1.4
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 +36 -7
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -12715,7 +12715,7 @@ var init_format_registry = __esm({
|
|
|
12715
12715
|
},
|
|
12716
12716
|
opencode: {
|
|
12717
12717
|
name: "OpenCode",
|
|
12718
|
-
description: "OpenCode agents, commands, and
|
|
12718
|
+
description: "OpenCode agents, commands, tools, and plugins",
|
|
12719
12719
|
documentationUrl: "https://opencode.ai",
|
|
12720
12720
|
subtypes: {
|
|
12721
12721
|
agent: {
|
|
@@ -12732,6 +12732,11 @@ var init_format_registry = __esm({
|
|
|
12732
12732
|
directory: ".opencode/tool",
|
|
12733
12733
|
filePatterns: ["*.md", "*.json"],
|
|
12734
12734
|
fileExtension: ".md"
|
|
12735
|
+
},
|
|
12736
|
+
plugin: {
|
|
12737
|
+
directory: ".opencode/plugin",
|
|
12738
|
+
filePatterns: ["*.js", "*.ts"],
|
|
12739
|
+
fileExtension: ".ts"
|
|
12735
12740
|
}
|
|
12736
12741
|
}
|
|
12737
12742
|
},
|
|
@@ -16503,7 +16508,7 @@ function findMainFile(files, format, subtype) {
|
|
|
16503
16508
|
return null;
|
|
16504
16509
|
}
|
|
16505
16510
|
async function handleInstall(packageSpec, options) {
|
|
16506
|
-
var _a, _b;
|
|
16511
|
+
var _a, _b, _c;
|
|
16507
16512
|
const startTime = Date.now();
|
|
16508
16513
|
let success = false;
|
|
16509
16514
|
let error;
|
|
@@ -17067,6 +17072,18 @@ This could indicate:
|
|
|
17067
17072
|
}
|
|
17068
17073
|
} else if (effectiveFormat === "droid" && effectiveSubtype === "skill") {
|
|
17069
17074
|
destPath = `${destDir}/SKILL.md`;
|
|
17075
|
+
} else if (effectiveFormat === "droid" && effectiveSubtype === "agent") {
|
|
17076
|
+
destDir = `.openagents/${packageName}`;
|
|
17077
|
+
destPath = `${destDir}/AGENT.md`;
|
|
17078
|
+
console.log(` \u{1F916} Installing agent to ${destDir}/ for progressive disclosure`);
|
|
17079
|
+
} else if (effectiveFormat === "cursor" && effectiveSubtype === "agent") {
|
|
17080
|
+
destDir = `.openagents/${packageName}`;
|
|
17081
|
+
destPath = `${destDir}/AGENT.md`;
|
|
17082
|
+
console.log(` \u{1F916} Installing agent to ${destDir}/ for progressive disclosure`);
|
|
17083
|
+
} else if (effectiveFormat === "opencode" && effectiveSubtype === "skill") {
|
|
17084
|
+
destDir = `.openskills/${packageName}`;
|
|
17085
|
+
destPath = `${destDir}/SKILL.md`;
|
|
17086
|
+
console.log(` \u{1F4E6} Installing skill to ${destDir}/ for progressive disclosure`);
|
|
17070
17087
|
} else {
|
|
17071
17088
|
destPath = `${destDir}/${packageName}.${fileExtension}`;
|
|
17072
17089
|
}
|
|
@@ -17233,13 +17250,11 @@ ${afterFrontmatter}`;
|
|
|
17233
17250
|
"aider",
|
|
17234
17251
|
// Uses CONVENTIONS.md
|
|
17235
17252
|
"codex",
|
|
17236
|
-
// Uses AGENTS.md (no native skills/agents)
|
|
17253
|
+
// Uses AGENTS.md (no native skills/agents/commands)
|
|
17237
17254
|
"copilot",
|
|
17238
|
-
// Uses AGENTS.md (no native skills/agents)
|
|
17255
|
+
// Uses AGENTS.md (no native skills/agents/commands)
|
|
17239
17256
|
"kiro",
|
|
17240
17257
|
// Uses AGENTS.md (no native skills)
|
|
17241
|
-
"opencode",
|
|
17242
|
-
// Uses AGENTS.md (no native skills)
|
|
17243
17258
|
"replit",
|
|
17244
17259
|
// Uses AGENTS.md (no native skills)
|
|
17245
17260
|
"zed",
|
|
@@ -17248,11 +17263,25 @@ ${afterFrontmatter}`;
|
|
|
17248
17263
|
// Uses AGENTS.md (fallback format)
|
|
17249
17264
|
];
|
|
17250
17265
|
const partialNativeSupport = {
|
|
17251
|
-
"cursor": ["agent"]
|
|
17266
|
+
"cursor": ["agent"],
|
|
17252
17267
|
// Cursor has native rules/commands but no native agents
|
|
17268
|
+
"opencode": ["skill"],
|
|
17269
|
+
// OpenCode has native agents/commands but no native skills
|
|
17270
|
+
"droid": ["agent"]
|
|
17271
|
+
// Factory Droid has native skills/commands/hooks but no native agents
|
|
17253
17272
|
};
|
|
17254
17273
|
const needsProgressiveDisclosure = progressiveDisclosureFormats.includes(effectiveFormat) && (effectiveSubtype === "skill" || effectiveSubtype === "agent" || effectiveSubtype === "slash-command") || ((_b = partialNativeSupport[effectiveFormat]) == null ? void 0 : _b.includes(effectiveSubtype));
|
|
17255
17274
|
if (needsProgressiveDisclosure && !options.noAppend) {
|
|
17275
|
+
if ((_c = partialNativeSupport[effectiveFormat]) == null ? void 0 : _c.includes(effectiveSubtype)) {
|
|
17276
|
+
const resourceName2 = stripAuthorNamespace2(packageId);
|
|
17277
|
+
if (effectiveSubtype === "skill") {
|
|
17278
|
+
destDir = `.openskills/${resourceName2}`;
|
|
17279
|
+
} else if (effectiveSubtype === "agent") {
|
|
17280
|
+
destDir = `.openagents/${resourceName2}`;
|
|
17281
|
+
} else if (effectiveSubtype === "slash-command") {
|
|
17282
|
+
destDir = ".opencommands";
|
|
17283
|
+
}
|
|
17284
|
+
}
|
|
17256
17285
|
if (!destDir) {
|
|
17257
17286
|
throw new Error("Internal error: destDir not set for progressive disclosure installation");
|
|
17258
17287
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prpm",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
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.4",
|
|
49
|
+
"@pr-pm/registry-client": "^2.3.4",
|
|
50
|
+
"@pr-pm/types": "^2.1.4",
|
|
51
51
|
"ajv": "^8.17.1",
|
|
52
52
|
"ajv-formats": "^3.0.1",
|
|
53
53
|
"commander": "^11.1.0",
|