rulesync 3.12.9 → 3.13.0
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 +8 -2
- package/dist/index.js +8 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5357,11 +5357,17 @@ var CopilotRule = class _CopilotRule extends ToolRule {
|
|
|
5357
5357
|
this.body = body;
|
|
5358
5358
|
}
|
|
5359
5359
|
toRulesyncRule() {
|
|
5360
|
+
let globs;
|
|
5361
|
+
if (this.isRoot()) {
|
|
5362
|
+
globs = ["**/*"];
|
|
5363
|
+
} else if (this.frontmatter.applyTo) {
|
|
5364
|
+
globs = this.frontmatter.applyTo.split(",").map((g) => g.trim());
|
|
5365
|
+
}
|
|
5360
5366
|
const rulesyncFrontmatter = {
|
|
5361
5367
|
targets: ["*"],
|
|
5362
5368
|
root: this.isRoot(),
|
|
5363
5369
|
description: this.frontmatter.description,
|
|
5364
|
-
globs
|
|
5370
|
+
globs
|
|
5365
5371
|
};
|
|
5366
5372
|
const originalFilePath = this.getRelativeFilePath();
|
|
5367
5373
|
const relativeFilePath = originalFilePath.replace(/\.instructions\.md$/, ".md");
|
|
@@ -7694,7 +7700,7 @@ Attention, again, you are just the planner, so though you can read any files and
|
|
|
7694
7700
|
}
|
|
7695
7701
|
|
|
7696
7702
|
// src/cli/index.ts
|
|
7697
|
-
var getVersion = () => "3.
|
|
7703
|
+
var getVersion = () => "3.13.0";
|
|
7698
7704
|
var main = async () => {
|
|
7699
7705
|
const program = new import_commander.Command();
|
|
7700
7706
|
const version = getVersion();
|
package/dist/index.js
CHANGED
|
@@ -5334,11 +5334,17 @@ var CopilotRule = class _CopilotRule extends ToolRule {
|
|
|
5334
5334
|
this.body = body;
|
|
5335
5335
|
}
|
|
5336
5336
|
toRulesyncRule() {
|
|
5337
|
+
let globs;
|
|
5338
|
+
if (this.isRoot()) {
|
|
5339
|
+
globs = ["**/*"];
|
|
5340
|
+
} else if (this.frontmatter.applyTo) {
|
|
5341
|
+
globs = this.frontmatter.applyTo.split(",").map((g) => g.trim());
|
|
5342
|
+
}
|
|
5337
5343
|
const rulesyncFrontmatter = {
|
|
5338
5344
|
targets: ["*"],
|
|
5339
5345
|
root: this.isRoot(),
|
|
5340
5346
|
description: this.frontmatter.description,
|
|
5341
|
-
globs
|
|
5347
|
+
globs
|
|
5342
5348
|
};
|
|
5343
5349
|
const originalFilePath = this.getRelativeFilePath();
|
|
5344
5350
|
const relativeFilePath = originalFilePath.replace(/\.instructions\.md$/, ".md");
|
|
@@ -7671,7 +7677,7 @@ Attention, again, you are just the planner, so though you can read any files and
|
|
|
7671
7677
|
}
|
|
7672
7678
|
|
|
7673
7679
|
// src/cli/index.ts
|
|
7674
|
-
var getVersion = () => "3.
|
|
7680
|
+
var getVersion = () => "3.13.0";
|
|
7675
7681
|
var main = async () => {
|
|
7676
7682
|
const program = new Command();
|
|
7677
7683
|
const version = getVersion();
|