prpm 2.1.28 → 2.1.29
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 +15 -6
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -8696,7 +8696,7 @@ function parseFrontmatter8(content) {
|
|
|
8696
8696
|
}
|
|
8697
8697
|
function parseAllowedTools(toolsString) {
|
|
8698
8698
|
return toolsString.split(/\s+/).filter(Boolean).map((tool) => {
|
|
8699
|
-
const match = tool.match(/^([A-Za-
|
|
8699
|
+
const match = tool.match(/^([A-Za-z0-9_.-]+)(?:\([^)]*\))?$/);
|
|
8700
8700
|
return match ? match[1] : tool;
|
|
8701
8701
|
}).filter((tool, index, arr) => arr.indexOf(tool) === index);
|
|
8702
8702
|
}
|
|
@@ -12889,6 +12889,9 @@ function generateFilename2(pkg) {
|
|
|
12889
12889
|
if ((pkg == null ? void 0 : pkg.subtype) === "skill") {
|
|
12890
12890
|
return "SKILL.md";
|
|
12891
12891
|
}
|
|
12892
|
+
if ((pkg == null ? void 0 : pkg.subtype) === "agent") {
|
|
12893
|
+
return "AGENT.md";
|
|
12894
|
+
}
|
|
12892
12895
|
return "AGENTS.md";
|
|
12893
12896
|
}
|
|
12894
12897
|
function isCodexSkillFormat(content) {
|
|
@@ -13489,7 +13492,7 @@ var init_format_registry = __esm({
|
|
|
13489
13492
|
fileExtension: ".md"
|
|
13490
13493
|
},
|
|
13491
13494
|
skill: {
|
|
13492
|
-
directory: ".
|
|
13495
|
+
directory: ".agents/skills",
|
|
13493
13496
|
filePatterns: ["SKILL.md"],
|
|
13494
13497
|
nested: true,
|
|
13495
13498
|
nestedIndicator: "SKILL.md",
|
|
@@ -13497,7 +13500,7 @@ var init_format_registry = __esm({
|
|
|
13497
13500
|
fileExtension: ".md"
|
|
13498
13501
|
},
|
|
13499
13502
|
agent: {
|
|
13500
|
-
directory: ".
|
|
13503
|
+
directory: ".agents/agents",
|
|
13501
13504
|
filePatterns: ["AGENT.md"],
|
|
13502
13505
|
nested: true,
|
|
13503
13506
|
nestedIndicator: "AGENT.md",
|
|
@@ -26000,7 +26003,10 @@ function getDefaultPath(format, filename, subtype, customName) {
|
|
|
26000
26003
|
return (0, import_path25.join)(process.cwd(), ".factory", `${baseName}.md`);
|
|
26001
26004
|
case "codex":
|
|
26002
26005
|
if (subtype === "skill") {
|
|
26003
|
-
return (0, import_path25.join)(process.cwd(), ".
|
|
26006
|
+
return (0, import_path25.join)(process.cwd(), ".agents", "skills", baseName, "SKILL.md");
|
|
26007
|
+
}
|
|
26008
|
+
if (subtype === "agent") {
|
|
26009
|
+
return (0, import_path25.join)(process.cwd(), ".agents", "agents", baseName, "AGENT.md");
|
|
26004
26010
|
}
|
|
26005
26011
|
return (0, import_path25.join)(process.cwd(), "AGENTS.md");
|
|
26006
26012
|
default:
|
|
@@ -26045,8 +26051,11 @@ function detectFormat(content, filepath) {
|
|
|
26045
26051
|
if (filepath.includes(".zed/extensions") || filepath.includes(".zed/slash_commands")) {
|
|
26046
26052
|
return "zed";
|
|
26047
26053
|
}
|
|
26048
|
-
if (filepath.includes(".
|
|
26049
|
-
return "codex";
|
|
26054
|
+
if (filepath.includes(".agents/skills")) {
|
|
26055
|
+
return "codex-skill";
|
|
26056
|
+
}
|
|
26057
|
+
if (filepath.includes(".agents/agents")) {
|
|
26058
|
+
return "codex-agent";
|
|
26050
26059
|
}
|
|
26051
26060
|
if (isCursorHooksFormat(content)) return "cursor-hooks";
|
|
26052
26061
|
if (isClaudeFormat(content)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prpm",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.29",
|
|
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.30",
|
|
49
|
+
"@pr-pm/registry-client": "^2.3.29",
|
|
50
|
+
"@pr-pm/types": "^2.1.30",
|
|
51
51
|
"ajv": "^8.17.1",
|
|
52
52
|
"ajv-formats": "^3.0.1",
|
|
53
53
|
"chalk": "^5.6.2",
|