rulesync 6.1.0 → 6.1.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.
package/dist/index.cjs CHANGED
@@ -4070,14 +4070,16 @@ var ClaudecodeMcp = class _ClaudecodeMcp extends ToolMcp {
4070
4070
  static forDeletion({
4071
4071
  baseDir = process.cwd(),
4072
4072
  relativeDirPath,
4073
- relativeFilePath
4073
+ relativeFilePath,
4074
+ global = false
4074
4075
  }) {
4075
4076
  return new _ClaudecodeMcp({
4076
4077
  baseDir,
4077
4078
  relativeDirPath,
4078
4079
  relativeFilePath,
4079
4080
  fileContent: "{}",
4080
- validate: false
4081
+ validate: false,
4082
+ global
4081
4083
  });
4082
4084
  }
4083
4085
  };
@@ -4540,17 +4542,25 @@ var GeminiCliMcp = class _GeminiCliMcp extends ToolMcp {
4540
4542
  validate() {
4541
4543
  return { success: true, error: null };
4542
4544
  }
4545
+ /**
4546
+ * settings.json may contain other settings, so it should not be deleted.
4547
+ */
4548
+ isDeletable() {
4549
+ return false;
4550
+ }
4543
4551
  static forDeletion({
4544
4552
  baseDir = process.cwd(),
4545
4553
  relativeDirPath,
4546
- relativeFilePath
4554
+ relativeFilePath,
4555
+ global = false
4547
4556
  }) {
4548
4557
  return new _GeminiCliMcp({
4549
4558
  baseDir,
4550
4559
  relativeDirPath,
4551
4560
  relativeFilePath,
4552
4561
  fileContent: "{}",
4553
- validate: false
4562
+ validate: false,
4563
+ global
4554
4564
  });
4555
4565
  }
4556
4566
  };
@@ -4954,14 +4964,16 @@ var OpencodeMcp = class _OpencodeMcp extends ToolMcp {
4954
4964
  static forDeletion({
4955
4965
  baseDir = process.cwd(),
4956
4966
  relativeDirPath,
4957
- relativeFilePath
4967
+ relativeFilePath,
4968
+ global = false
4958
4969
  }) {
4959
4970
  return new _OpencodeMcp({
4960
4971
  baseDir,
4961
4972
  relativeDirPath,
4962
4973
  relativeFilePath,
4963
4974
  fileContent: "{}",
4964
- validate: false
4975
+ validate: false,
4976
+ global
4965
4977
  });
4966
4978
  }
4967
4979
  };
@@ -12427,7 +12439,7 @@ async function generateCommand(options) {
12427
12439
  silent: config.getSilent()
12428
12440
  });
12429
12441
  logger.info("Generating files...");
12430
- if (!await checkRulesyncDirExists({ baseDir: config.getBaseDirs()[0] ?? process.cwd() })) {
12442
+ if (!await checkRulesyncDirExists({ baseDir: process.cwd() })) {
12431
12443
  logger.error("\u274C .rulesync directory not found. Run 'rulesync init' first.");
12432
12444
  process.exit(1);
12433
12445
  }
@@ -14280,7 +14292,7 @@ async function mcpCommand({ version }) {
14280
14292
  }
14281
14293
 
14282
14294
  // src/cli/index.ts
14283
- var getVersion = () => "6.1.0";
14295
+ var getVersion = () => "6.1.1";
14284
14296
  var main = async () => {
14285
14297
  const program = new import_commander.Command();
14286
14298
  const version = getVersion();
package/dist/index.js CHANGED
@@ -4047,14 +4047,16 @@ var ClaudecodeMcp = class _ClaudecodeMcp extends ToolMcp {
4047
4047
  static forDeletion({
4048
4048
  baseDir = process.cwd(),
4049
4049
  relativeDirPath,
4050
- relativeFilePath
4050
+ relativeFilePath,
4051
+ global = false
4051
4052
  }) {
4052
4053
  return new _ClaudecodeMcp({
4053
4054
  baseDir,
4054
4055
  relativeDirPath,
4055
4056
  relativeFilePath,
4056
4057
  fileContent: "{}",
4057
- validate: false
4058
+ validate: false,
4059
+ global
4058
4060
  });
4059
4061
  }
4060
4062
  };
@@ -4517,17 +4519,25 @@ var GeminiCliMcp = class _GeminiCliMcp extends ToolMcp {
4517
4519
  validate() {
4518
4520
  return { success: true, error: null };
4519
4521
  }
4522
+ /**
4523
+ * settings.json may contain other settings, so it should not be deleted.
4524
+ */
4525
+ isDeletable() {
4526
+ return false;
4527
+ }
4520
4528
  static forDeletion({
4521
4529
  baseDir = process.cwd(),
4522
4530
  relativeDirPath,
4523
- relativeFilePath
4531
+ relativeFilePath,
4532
+ global = false
4524
4533
  }) {
4525
4534
  return new _GeminiCliMcp({
4526
4535
  baseDir,
4527
4536
  relativeDirPath,
4528
4537
  relativeFilePath,
4529
4538
  fileContent: "{}",
4530
- validate: false
4539
+ validate: false,
4540
+ global
4531
4541
  });
4532
4542
  }
4533
4543
  };
@@ -4931,14 +4941,16 @@ var OpencodeMcp = class _OpencodeMcp extends ToolMcp {
4931
4941
  static forDeletion({
4932
4942
  baseDir = process.cwd(),
4933
4943
  relativeDirPath,
4934
- relativeFilePath
4944
+ relativeFilePath,
4945
+ global = false
4935
4946
  }) {
4936
4947
  return new _OpencodeMcp({
4937
4948
  baseDir,
4938
4949
  relativeDirPath,
4939
4950
  relativeFilePath,
4940
4951
  fileContent: "{}",
4941
- validate: false
4952
+ validate: false,
4953
+ global
4942
4954
  });
4943
4955
  }
4944
4956
  };
@@ -12404,7 +12416,7 @@ async function generateCommand(options) {
12404
12416
  silent: config.getSilent()
12405
12417
  });
12406
12418
  logger.info("Generating files...");
12407
- if (!await checkRulesyncDirExists({ baseDir: config.getBaseDirs()[0] ?? process.cwd() })) {
12419
+ if (!await checkRulesyncDirExists({ baseDir: process.cwd() })) {
12408
12420
  logger.error("\u274C .rulesync directory not found. Run 'rulesync init' first.");
12409
12421
  process.exit(1);
12410
12422
  }
@@ -14257,7 +14269,7 @@ async function mcpCommand({ version }) {
14257
14269
  }
14258
14270
 
14259
14271
  // src/cli/index.ts
14260
- var getVersion = () => "6.1.0";
14272
+ var getVersion = () => "6.1.1";
14261
14273
  var main = async () => {
14262
14274
  const program = new Command();
14263
14275
  const version = getVersion();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rulesync",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "description": "Unified AI rules management CLI tool that generates configuration files for various AI development tools",
5
5
  "keywords": [
6
6
  "ai",