@promptscript/cli 1.5.0 → 1.5.1
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/index.js +13 -7
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -30123,13 +30123,19 @@ var Compiler = class _Compiler {
|
|
|
30123
30123
|
const skillPath = `${skillBasePath}/promptscript/${skillFileName}`;
|
|
30124
30124
|
const existingOwner = outputPathOwners.get(skillPath);
|
|
30125
30125
|
if (existingOwner) {
|
|
30126
|
-
|
|
30127
|
-
|
|
30128
|
-
|
|
30129
|
-
|
|
30130
|
-
|
|
30131
|
-
|
|
30132
|
-
|
|
30126
|
+
if (existingOwner !== formatter.name) {
|
|
30127
|
+
formatWarnings.push({
|
|
30128
|
+
ruleId: "PS4001",
|
|
30129
|
+
ruleName: "output-path-collision",
|
|
30130
|
+
severity: "warning",
|
|
30131
|
+
message: `Output path '${skillPath}' is already written by '${existingOwner}'. Skipping auto-injected PromptScript skill for '${formatter.name}'.`,
|
|
30132
|
+
suggestion: `The user-defined skill takes precedence. To use the bundled skill, remove the custom one or rename it.`
|
|
30133
|
+
});
|
|
30134
|
+
} else {
|
|
30135
|
+
this.logger.debug(
|
|
30136
|
+
` Skill path '${skillPath}' already output by '${formatter.name}' (auto-discovered). Skipping auto-injection.`
|
|
30137
|
+
);
|
|
30138
|
+
}
|
|
30133
30139
|
continue;
|
|
30134
30140
|
}
|
|
30135
30141
|
outputPathOwners.set(skillPath, `${formatter.name}:promptscript-skill`);
|