@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.
Files changed (2) hide show
  1. package/index.js +13 -7
  2. 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
- formatWarnings.push({
30127
- ruleId: "PS4001",
30128
- ruleName: "output-path-collision",
30129
- severity: "warning",
30130
- message: `Output path '${skillPath}' is already written by '${existingOwner}'. Skipping auto-injected PromptScript skill for '${formatter.name}'.`,
30131
- suggestion: `The user-defined skill takes precedence. To use the bundled skill, remove the custom one or rename it.`
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`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptscript/cli",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "CLI for PromptScript - standardize AI instructions across GitHub Copilot, Claude, Cursor and other AI tools",
5
5
  "keywords": [
6
6
  "cli",