rulesync 1.2.4 → 1.2.5

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.cjs CHANGED
@@ -4307,7 +4307,8 @@ var CopilotRule = class _CopilotRule extends ToolRule {
4307
4307
  }
4308
4308
  super({
4309
4309
  ...rest,
4310
- fileContent: stringifyFrontmatter(body, frontmatter)
4310
+ // If the rule is a root rule, the file content does not contain frontmatter.
4311
+ fileContent: rest.root ? body : stringifyFrontmatter(body, frontmatter)
4311
4312
  });
4312
4313
  this.frontmatter = frontmatter;
4313
4314
  this.body = body;
@@ -5895,7 +5896,7 @@ For example, if the user instructs \`Call planner subagent to plan the refactori
5895
5896
  overview,
5896
5897
  ...this.simulateCommands && CommandsProcessor.getToolTargetsSimulated().includes(this.toolTarget) ? [commandsSection] : [],
5897
5898
  ...this.simulateSubagents && SubagentsProcessor.getToolTargetsSimulated().includes(this.toolTarget) ? [subagentsSection] : []
5898
- ].join("\n\n");
5899
+ ].join("\n\n") + "\n\n";
5899
5900
  return result;
5900
5901
  }
5901
5902
  };
@@ -6329,7 +6330,7 @@ globs: ["**/*"]
6329
6330
  }
6330
6331
 
6331
6332
  // src/cli/index.ts
6332
- var getVersion = () => "1.2.4";
6333
+ var getVersion = () => "1.2.5";
6333
6334
  var main = async () => {
6334
6335
  const program = new import_commander.Command();
6335
6336
  const version = getVersion();
package/dist/index.js CHANGED
@@ -4284,7 +4284,8 @@ var CopilotRule = class _CopilotRule extends ToolRule {
4284
4284
  }
4285
4285
  super({
4286
4286
  ...rest,
4287
- fileContent: stringifyFrontmatter(body, frontmatter)
4287
+ // If the rule is a root rule, the file content does not contain frontmatter.
4288
+ fileContent: rest.root ? body : stringifyFrontmatter(body, frontmatter)
4288
4289
  });
4289
4290
  this.frontmatter = frontmatter;
4290
4291
  this.body = body;
@@ -5872,7 +5873,7 @@ For example, if the user instructs \`Call planner subagent to plan the refactori
5872
5873
  overview,
5873
5874
  ...this.simulateCommands && CommandsProcessor.getToolTargetsSimulated().includes(this.toolTarget) ? [commandsSection] : [],
5874
5875
  ...this.simulateSubagents && SubagentsProcessor.getToolTargetsSimulated().includes(this.toolTarget) ? [subagentsSection] : []
5875
- ].join("\n\n");
5876
+ ].join("\n\n") + "\n\n";
5876
5877
  return result;
5877
5878
  }
5878
5879
  };
@@ -6306,7 +6307,7 @@ globs: ["**/*"]
6306
6307
  }
6307
6308
 
6308
6309
  // src/cli/index.ts
6309
- var getVersion = () => "1.2.4";
6310
+ var getVersion = () => "1.2.5";
6310
6311
  var main = async () => {
6311
6312
  const program = new Command();
6312
6313
  const version = getVersion();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rulesync",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "Unified AI rules management CLI tool that generates configuration files for various AI development tools",
5
5
  "keywords": [
6
6
  "ai",