rulesync 3.11.0 → 3.11.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.
- package/dist/index.cjs +10 -5
- package/dist/index.js +10 -5
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -4448,12 +4448,17 @@ var RulesyncRule = class _RulesyncRule extends RulesyncFile {
|
|
|
4448
4448
|
relativeFilePath,
|
|
4449
4449
|
validate = true
|
|
4450
4450
|
}) {
|
|
4451
|
-
const
|
|
4452
|
-
const
|
|
4451
|
+
const legacyPath = (0, import_node_path38.join)(this.getSettablePaths().legacy.relativeDirPath, relativeFilePath);
|
|
4452
|
+
const recommendedPath = (0, import_node_path38.join)(
|
|
4453
|
+
this.getSettablePaths().recommended.relativeDirPath,
|
|
4454
|
+
relativeFilePath
|
|
4455
|
+
);
|
|
4456
|
+
logger.warn(`\u26A0\uFE0F Using deprecated path "${legacyPath}". Please migrate to "${recommendedPath}"`);
|
|
4457
|
+
const fileContent = await readFileContent(legacyPath);
|
|
4453
4458
|
const { frontmatter, body: content } = parseFrontmatter(fileContent);
|
|
4454
4459
|
const result = RulesyncRuleFrontmatterSchema.safeParse(frontmatter);
|
|
4455
4460
|
if (!result.success) {
|
|
4456
|
-
throw new Error(`Invalid frontmatter in ${
|
|
4461
|
+
throw new Error(`Invalid frontmatter in ${legacyPath}: ${result.error.message}`);
|
|
4457
4462
|
}
|
|
4458
4463
|
const validatedFrontmatter = {
|
|
4459
4464
|
root: result.data.root ?? false,
|
|
@@ -4463,7 +4468,7 @@ var RulesyncRule = class _RulesyncRule extends RulesyncFile {
|
|
|
4463
4468
|
agentsmd: result.data.agentsmd,
|
|
4464
4469
|
cursor: result.data.cursor
|
|
4465
4470
|
};
|
|
4466
|
-
const filename = (0, import_node_path38.basename)(
|
|
4471
|
+
const filename = (0, import_node_path38.basename)(legacyPath);
|
|
4467
4472
|
return new _RulesyncRule({
|
|
4468
4473
|
baseDir: ".",
|
|
4469
4474
|
relativeDirPath: this.getSettablePaths().recommended.relativeDirPath,
|
|
@@ -7488,7 +7493,7 @@ Attention, again, you are just the planner, so though you can read any files and
|
|
|
7488
7493
|
}
|
|
7489
7494
|
|
|
7490
7495
|
// src/cli/index.ts
|
|
7491
|
-
var getVersion = () => "3.11.
|
|
7496
|
+
var getVersion = () => "3.11.2";
|
|
7492
7497
|
var main = async () => {
|
|
7493
7498
|
const program = new import_commander.Command();
|
|
7494
7499
|
const version = getVersion();
|
package/dist/index.js
CHANGED
|
@@ -4425,12 +4425,17 @@ var RulesyncRule = class _RulesyncRule extends RulesyncFile {
|
|
|
4425
4425
|
relativeFilePath,
|
|
4426
4426
|
validate = true
|
|
4427
4427
|
}) {
|
|
4428
|
-
const
|
|
4429
|
-
const
|
|
4428
|
+
const legacyPath = join37(this.getSettablePaths().legacy.relativeDirPath, relativeFilePath);
|
|
4429
|
+
const recommendedPath = join37(
|
|
4430
|
+
this.getSettablePaths().recommended.relativeDirPath,
|
|
4431
|
+
relativeFilePath
|
|
4432
|
+
);
|
|
4433
|
+
logger.warn(`\u26A0\uFE0F Using deprecated path "${legacyPath}". Please migrate to "${recommendedPath}"`);
|
|
4434
|
+
const fileContent = await readFileContent(legacyPath);
|
|
4430
4435
|
const { frontmatter, body: content } = parseFrontmatter(fileContent);
|
|
4431
4436
|
const result = RulesyncRuleFrontmatterSchema.safeParse(frontmatter);
|
|
4432
4437
|
if (!result.success) {
|
|
4433
|
-
throw new Error(`Invalid frontmatter in ${
|
|
4438
|
+
throw new Error(`Invalid frontmatter in ${legacyPath}: ${result.error.message}`);
|
|
4434
4439
|
}
|
|
4435
4440
|
const validatedFrontmatter = {
|
|
4436
4441
|
root: result.data.root ?? false,
|
|
@@ -4440,7 +4445,7 @@ var RulesyncRule = class _RulesyncRule extends RulesyncFile {
|
|
|
4440
4445
|
agentsmd: result.data.agentsmd,
|
|
4441
4446
|
cursor: result.data.cursor
|
|
4442
4447
|
};
|
|
4443
|
-
const filename = basename15(
|
|
4448
|
+
const filename = basename15(legacyPath);
|
|
4444
4449
|
return new _RulesyncRule({
|
|
4445
4450
|
baseDir: ".",
|
|
4446
4451
|
relativeDirPath: this.getSettablePaths().recommended.relativeDirPath,
|
|
@@ -7465,7 +7470,7 @@ Attention, again, you are just the planner, so though you can read any files and
|
|
|
7465
7470
|
}
|
|
7466
7471
|
|
|
7467
7472
|
// src/cli/index.ts
|
|
7468
|
-
var getVersion = () => "3.11.
|
|
7473
|
+
var getVersion = () => "3.11.2";
|
|
7469
7474
|
var main = async () => {
|
|
7470
7475
|
const program = new Command();
|
|
7471
7476
|
const version = getVersion();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rulesync",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.2",
|
|
4
4
|
"description": "Unified AI rules management CLI tool that generates configuration files for various AI development tools",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"zod": "4.1.12"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@anthropic-ai/claude-agent-sdk": "0.1.
|
|
52
|
+
"@anthropic-ai/claude-agent-sdk": "0.1.25",
|
|
53
53
|
"@biomejs/biome": "2.2.6",
|
|
54
54
|
"@eslint/js": "9.38.0",
|
|
55
55
|
"@secretlint/secretlint-rule-preset-recommend": "11.2.5",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@types/js-yaml": "4.0.9",
|
|
58
58
|
"@types/micromatch": "4.0.9",
|
|
59
59
|
"@types/node": "24.9.1",
|
|
60
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
60
|
+
"@typescript/native-preview": "7.0.0-dev.20251021.1",
|
|
61
61
|
"@vitest/coverage-v8": "3.2.4",
|
|
62
62
|
"cspell": "9.2.1",
|
|
63
63
|
"eslint": "9.38.0",
|