rulesync 7.6.0 → 7.6.2
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.
|
@@ -3847,7 +3847,7 @@ var HooksProcessor = class extends FeatureProcessor {
|
|
|
3847
3847
|
try {
|
|
3848
3848
|
return [
|
|
3849
3849
|
await RulesyncHooks.fromFile({
|
|
3850
|
-
baseDir:
|
|
3850
|
+
baseDir: process.cwd(),
|
|
3851
3851
|
validate: true
|
|
3852
3852
|
})
|
|
3853
3853
|
];
|
|
@@ -9680,14 +9680,14 @@ var SkillsProcessor = class extends DirFeatureProcessor {
|
|
|
9680
9680
|
* Local skills take precedence over curated skills with the same name.
|
|
9681
9681
|
*/
|
|
9682
9682
|
async loadRulesyncDirs() {
|
|
9683
|
-
const localDirNames = [...await getLocalSkillDirNames(
|
|
9683
|
+
const localDirNames = [...await getLocalSkillDirNames(process.cwd())];
|
|
9684
9684
|
const localSkills = await Promise.all(
|
|
9685
9685
|
localDirNames.map(
|
|
9686
|
-
(dirName) => RulesyncSkill.fromDir({ baseDir:
|
|
9686
|
+
(dirName) => RulesyncSkill.fromDir({ baseDir: process.cwd(), dirName, global: this.global })
|
|
9687
9687
|
)
|
|
9688
9688
|
);
|
|
9689
9689
|
const localSkillNames = new Set(localDirNames);
|
|
9690
|
-
const curatedDirPath = join71(
|
|
9690
|
+
const curatedDirPath = join71(process.cwd(), RULESYNC_CURATED_SKILLS_RELATIVE_DIR_PATH);
|
|
9691
9691
|
let curatedSkills = [];
|
|
9692
9692
|
if (await directoryExists(curatedDirPath)) {
|
|
9693
9693
|
const curatedDirPaths = await findFilesByGlobs(join71(curatedDirPath, "*"), { type: "dir" });
|
|
@@ -9703,7 +9703,7 @@ var SkillsProcessor = class extends DirFeatureProcessor {
|
|
|
9703
9703
|
curatedSkills = await Promise.all(
|
|
9704
9704
|
nonConflicting.map(
|
|
9705
9705
|
(dirName) => RulesyncSkill.fromDir({
|
|
9706
|
-
baseDir:
|
|
9706
|
+
baseDir: process.cwd(),
|
|
9707
9707
|
relativeDirPath: curatedRelativeDirPath,
|
|
9708
9708
|
dirName,
|
|
9709
9709
|
global: this.global
|
|
@@ -11222,7 +11222,7 @@ var SubagentsProcessor = class extends FeatureProcessor {
|
|
|
11222
11222
|
* Load and parse rulesync subagent files from .rulesync/subagents/ directory
|
|
11223
11223
|
*/
|
|
11224
11224
|
async loadRulesyncFiles() {
|
|
11225
|
-
const subagentsDir = join84(
|
|
11225
|
+
const subagentsDir = join84(process.cwd(), RulesyncSubagent.getSettablePaths().relativeDirPath);
|
|
11226
11226
|
const dirExists = await directoryExists(subagentsDir);
|
|
11227
11227
|
if (!dirExists) {
|
|
11228
11228
|
logger.debug(`Rulesync subagents directory not found: ${subagentsDir}`);
|
|
@@ -14627,7 +14627,7 @@ var RulesProcessor = class extends FeatureProcessor {
|
|
|
14627
14627
|
* Load and parse rulesync rule files from .rulesync/rules/ directory
|
|
14628
14628
|
*/
|
|
14629
14629
|
async loadRulesyncFiles() {
|
|
14630
|
-
const rulesyncBaseDir = join109(
|
|
14630
|
+
const rulesyncBaseDir = join109(process.cwd(), RULESYNC_RULES_RELATIVE_DIR_PATH);
|
|
14631
14631
|
const files = await findFilesByGlobs(join109(rulesyncBaseDir, "**", "*.md"));
|
|
14632
14632
|
logger.debug(`Found ${files.length} rulesync files`);
|
|
14633
14633
|
const rulesyncRules = await Promise.all(
|
package/dist/cli/index.cjs
CHANGED
|
@@ -3582,7 +3582,7 @@ var HooksProcessor = class extends FeatureProcessor {
|
|
|
3582
3582
|
try {
|
|
3583
3583
|
return [
|
|
3584
3584
|
await RulesyncHooks.fromFile({
|
|
3585
|
-
baseDir:
|
|
3585
|
+
baseDir: process.cwd(),
|
|
3586
3586
|
validate: true
|
|
3587
3587
|
})
|
|
3588
3588
|
];
|
|
@@ -9415,14 +9415,14 @@ var SkillsProcessor = class extends DirFeatureProcessor {
|
|
|
9415
9415
|
* Local skills take precedence over curated skills with the same name.
|
|
9416
9416
|
*/
|
|
9417
9417
|
async loadRulesyncDirs() {
|
|
9418
|
-
const localDirNames = [...await getLocalSkillDirNames(
|
|
9418
|
+
const localDirNames = [...await getLocalSkillDirNames(process.cwd())];
|
|
9419
9419
|
const localSkills = await Promise.all(
|
|
9420
9420
|
localDirNames.map(
|
|
9421
|
-
(dirName) => RulesyncSkill.fromDir({ baseDir:
|
|
9421
|
+
(dirName) => RulesyncSkill.fromDir({ baseDir: process.cwd(), dirName, global: this.global })
|
|
9422
9422
|
)
|
|
9423
9423
|
);
|
|
9424
9424
|
const localSkillNames = new Set(localDirNames);
|
|
9425
|
-
const curatedDirPath = (0, import_node_path71.join)(
|
|
9425
|
+
const curatedDirPath = (0, import_node_path71.join)(process.cwd(), RULESYNC_CURATED_SKILLS_RELATIVE_DIR_PATH);
|
|
9426
9426
|
let curatedSkills = [];
|
|
9427
9427
|
if (await directoryExists(curatedDirPath)) {
|
|
9428
9428
|
const curatedDirPaths = await findFilesByGlobs((0, import_node_path71.join)(curatedDirPath, "*"), { type: "dir" });
|
|
@@ -9438,7 +9438,7 @@ var SkillsProcessor = class extends DirFeatureProcessor {
|
|
|
9438
9438
|
curatedSkills = await Promise.all(
|
|
9439
9439
|
nonConflicting.map(
|
|
9440
9440
|
(dirName) => RulesyncSkill.fromDir({
|
|
9441
|
-
baseDir:
|
|
9441
|
+
baseDir: process.cwd(),
|
|
9442
9442
|
relativeDirPath: curatedRelativeDirPath,
|
|
9443
9443
|
dirName,
|
|
9444
9444
|
global: this.global
|
|
@@ -10957,7 +10957,7 @@ var SubagentsProcessor = class extends FeatureProcessor {
|
|
|
10957
10957
|
* Load and parse rulesync subagent files from .rulesync/subagents/ directory
|
|
10958
10958
|
*/
|
|
10959
10959
|
async loadRulesyncFiles() {
|
|
10960
|
-
const subagentsDir = (0, import_node_path84.join)(
|
|
10960
|
+
const subagentsDir = (0, import_node_path84.join)(process.cwd(), RulesyncSubagent.getSettablePaths().relativeDirPath);
|
|
10961
10961
|
const dirExists = await directoryExists(subagentsDir);
|
|
10962
10962
|
if (!dirExists) {
|
|
10963
10963
|
logger.debug(`Rulesync subagents directory not found: ${subagentsDir}`);
|
|
@@ -14362,7 +14362,7 @@ var RulesProcessor = class extends FeatureProcessor {
|
|
|
14362
14362
|
* Load and parse rulesync rule files from .rulesync/rules/ directory
|
|
14363
14363
|
*/
|
|
14364
14364
|
async loadRulesyncFiles() {
|
|
14365
|
-
const rulesyncBaseDir = (0, import_node_path109.join)(
|
|
14365
|
+
const rulesyncBaseDir = (0, import_node_path109.join)(process.cwd(), RULESYNC_RULES_RELATIVE_DIR_PATH);
|
|
14366
14366
|
const files = await findFilesByGlobs((0, import_node_path109.join)(rulesyncBaseDir, "**", "*.md"));
|
|
14367
14367
|
logger.debug(`Found ${files.length} rulesync files`);
|
|
14368
14368
|
const rulesyncRules = await Promise.all(
|
|
@@ -19240,7 +19240,7 @@ async function updateCommand(currentVersion, options) {
|
|
|
19240
19240
|
}
|
|
19241
19241
|
|
|
19242
19242
|
// src/cli/index.ts
|
|
19243
|
-
var getVersion = () => "7.6.
|
|
19243
|
+
var getVersion = () => "7.6.2";
|
|
19244
19244
|
var main = async () => {
|
|
19245
19245
|
const program = new import_commander.Command();
|
|
19246
19246
|
const version = getVersion();
|
package/dist/cli/index.js
CHANGED
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
removeTempDirectory,
|
|
61
61
|
stringifyFrontmatter,
|
|
62
62
|
writeFileContent
|
|
63
|
-
} from "../chunk-
|
|
63
|
+
} from "../chunk-MG4OE47A.js";
|
|
64
64
|
|
|
65
65
|
// src/cli/index.ts
|
|
66
66
|
import { Command } from "commander";
|
|
@@ -3795,7 +3795,7 @@ async function updateCommand(currentVersion, options) {
|
|
|
3795
3795
|
}
|
|
3796
3796
|
|
|
3797
3797
|
// src/cli/index.ts
|
|
3798
|
-
var getVersion = () => "7.6.
|
|
3798
|
+
var getVersion = () => "7.6.2";
|
|
3799
3799
|
var main = async () => {
|
|
3800
3800
|
const program = new Command();
|
|
3801
3801
|
const version = getVersion();
|
package/dist/index.cjs
CHANGED
|
@@ -3875,7 +3875,7 @@ var HooksProcessor = class extends FeatureProcessor {
|
|
|
3875
3875
|
try {
|
|
3876
3876
|
return [
|
|
3877
3877
|
await RulesyncHooks.fromFile({
|
|
3878
|
-
baseDir:
|
|
3878
|
+
baseDir: process.cwd(),
|
|
3879
3879
|
validate: true
|
|
3880
3880
|
})
|
|
3881
3881
|
];
|
|
@@ -9708,14 +9708,14 @@ var SkillsProcessor = class extends DirFeatureProcessor {
|
|
|
9708
9708
|
* Local skills take precedence over curated skills with the same name.
|
|
9709
9709
|
*/
|
|
9710
9710
|
async loadRulesyncDirs() {
|
|
9711
|
-
const localDirNames = [...await getLocalSkillDirNames(
|
|
9711
|
+
const localDirNames = [...await getLocalSkillDirNames(process.cwd())];
|
|
9712
9712
|
const localSkills = await Promise.all(
|
|
9713
9713
|
localDirNames.map(
|
|
9714
|
-
(dirName) => RulesyncSkill.fromDir({ baseDir:
|
|
9714
|
+
(dirName) => RulesyncSkill.fromDir({ baseDir: process.cwd(), dirName, global: this.global })
|
|
9715
9715
|
)
|
|
9716
9716
|
);
|
|
9717
9717
|
const localSkillNames = new Set(localDirNames);
|
|
9718
|
-
const curatedDirPath = (0, import_node_path72.join)(
|
|
9718
|
+
const curatedDirPath = (0, import_node_path72.join)(process.cwd(), RULESYNC_CURATED_SKILLS_RELATIVE_DIR_PATH);
|
|
9719
9719
|
let curatedSkills = [];
|
|
9720
9720
|
if (await directoryExists(curatedDirPath)) {
|
|
9721
9721
|
const curatedDirPaths = await findFilesByGlobs((0, import_node_path72.join)(curatedDirPath, "*"), { type: "dir" });
|
|
@@ -9731,7 +9731,7 @@ var SkillsProcessor = class extends DirFeatureProcessor {
|
|
|
9731
9731
|
curatedSkills = await Promise.all(
|
|
9732
9732
|
nonConflicting.map(
|
|
9733
9733
|
(dirName) => RulesyncSkill.fromDir({
|
|
9734
|
-
baseDir:
|
|
9734
|
+
baseDir: process.cwd(),
|
|
9735
9735
|
relativeDirPath: curatedRelativeDirPath,
|
|
9736
9736
|
dirName,
|
|
9737
9737
|
global: this.global
|
|
@@ -11250,7 +11250,7 @@ var SubagentsProcessor = class extends FeatureProcessor {
|
|
|
11250
11250
|
* Load and parse rulesync subagent files from .rulesync/subagents/ directory
|
|
11251
11251
|
*/
|
|
11252
11252
|
async loadRulesyncFiles() {
|
|
11253
|
-
const subagentsDir = (0, import_node_path85.join)(
|
|
11253
|
+
const subagentsDir = (0, import_node_path85.join)(process.cwd(), RulesyncSubagent.getSettablePaths().relativeDirPath);
|
|
11254
11254
|
const dirExists = await directoryExists(subagentsDir);
|
|
11255
11255
|
if (!dirExists) {
|
|
11256
11256
|
logger.debug(`Rulesync subagents directory not found: ${subagentsDir}`);
|
|
@@ -14655,7 +14655,7 @@ var RulesProcessor = class extends FeatureProcessor {
|
|
|
14655
14655
|
* Load and parse rulesync rule files from .rulesync/rules/ directory
|
|
14656
14656
|
*/
|
|
14657
14657
|
async loadRulesyncFiles() {
|
|
14658
|
-
const rulesyncBaseDir = (0, import_node_path110.join)(
|
|
14658
|
+
const rulesyncBaseDir = (0, import_node_path110.join)(process.cwd(), RULESYNC_RULES_RELATIVE_DIR_PATH);
|
|
14659
14659
|
const files = await findFilesByGlobs((0, import_node_path110.join)(rulesyncBaseDir, "**", "*.md"));
|
|
14660
14660
|
logger.debug(`Found ${files.length} rulesync files`);
|
|
14661
14661
|
const rulesyncRules = await Promise.all(
|
package/dist/index.js
CHANGED