rulesync 0.47.0 → 0.48.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 CHANGED
@@ -1547,11 +1547,10 @@ Generating configurations for base directory: ${baseDir}`);
1547
1547
  console.warn("\u26A0\uFE0F No configurations generated");
1548
1548
  return;
1549
1549
  }
1550
- console.log(`
1551
- \u{1F389} Successfully generated ${totalOutputs} configuration file(s)!`);
1552
1550
  if (options.verbose) {
1553
1551
  console.log("\nGenerating MCP configurations...");
1554
1552
  }
1553
+ let totalMcpOutputs = 0;
1555
1554
  for (const baseDir of baseDirs) {
1556
1555
  const mcpResults = await generateMcpConfigs(
1557
1556
  process.cwd(),
@@ -1566,6 +1565,7 @@ Generating configurations for base directory: ${baseDir}`);
1566
1565
  for (const result of mcpResults) {
1567
1566
  if (result.status === "success") {
1568
1567
  console.log(`\u2705 Generated ${result.tool} MCP configuration: ${result.path}`);
1568
+ totalMcpOutputs++;
1569
1569
  } else if (result.status === "error") {
1570
1570
  console.error(`\u274C Failed to generate ${result.tool} MCP configuration: ${result.error}`);
1571
1571
  } else if (options.verbose && result.status === "skipped") {
@@ -1573,6 +1573,13 @@ Generating configurations for base directory: ${baseDir}`);
1573
1573
  }
1574
1574
  }
1575
1575
  }
1576
+ const totalGenerated = totalOutputs + totalMcpOutputs;
1577
+ if (totalGenerated > 0) {
1578
+ console.log(
1579
+ `
1580
+ \u{1F389} All done! Generated ${totalGenerated} file(s) total (${totalOutputs} configurations + ${totalMcpOutputs} MCP configurations)`
1581
+ );
1582
+ }
1576
1583
  } catch (error) {
1577
1584
  console.error("\u274C Failed to generate configurations:", error);
1578
1585
  process.exit(1);
@@ -2748,7 +2755,7 @@ async function watchCommand() {
2748
2755
 
2749
2756
  // src/cli/index.ts
2750
2757
  var program = new import_commander.Command();
2751
- program.name("rulesync").description("Unified AI rules management CLI tool").version("0.47.0");
2758
+ program.name("rulesync").description("Unified AI rules management CLI tool").version("0.48.0");
2752
2759
  program.command("init").description("Initialize rulesync in current directory").action(initCommand);
2753
2760
  program.command("add <filename>").description("Add a new rule file").action(addCommand);
2754
2761
  program.command("gitignore").description("Add generated files to .gitignore").action(gitignoreCommand);
package/dist/index.js CHANGED
@@ -1159,11 +1159,10 @@ Generating configurations for base directory: ${baseDir}`);
1159
1159
  console.warn("\u26A0\uFE0F No configurations generated");
1160
1160
  return;
1161
1161
  }
1162
- console.log(`
1163
- \u{1F389} Successfully generated ${totalOutputs} configuration file(s)!`);
1164
1162
  if (options.verbose) {
1165
1163
  console.log("\nGenerating MCP configurations...");
1166
1164
  }
1165
+ let totalMcpOutputs = 0;
1167
1166
  for (const baseDir of baseDirs) {
1168
1167
  const mcpResults = await generateMcpConfigs(
1169
1168
  process.cwd(),
@@ -1178,6 +1177,7 @@ Generating configurations for base directory: ${baseDir}`);
1178
1177
  for (const result of mcpResults) {
1179
1178
  if (result.status === "success") {
1180
1179
  console.log(`\u2705 Generated ${result.tool} MCP configuration: ${result.path}`);
1180
+ totalMcpOutputs++;
1181
1181
  } else if (result.status === "error") {
1182
1182
  console.error(`\u274C Failed to generate ${result.tool} MCP configuration: ${result.error}`);
1183
1183
  } else if (options.verbose && result.status === "skipped") {
@@ -1185,6 +1185,13 @@ Generating configurations for base directory: ${baseDir}`);
1185
1185
  }
1186
1186
  }
1187
1187
  }
1188
+ const totalGenerated = totalOutputs + totalMcpOutputs;
1189
+ if (totalGenerated > 0) {
1190
+ console.log(
1191
+ `
1192
+ \u{1F389} All done! Generated ${totalGenerated} file(s) total (${totalOutputs} configurations + ${totalMcpOutputs} MCP configurations)`
1193
+ );
1194
+ }
1188
1195
  } catch (error) {
1189
1196
  console.error("\u274C Failed to generate configurations:", error);
1190
1197
  process.exit(1);
@@ -2360,7 +2367,7 @@ async function watchCommand() {
2360
2367
 
2361
2368
  // src/cli/index.ts
2362
2369
  var program = new Command();
2363
- program.name("rulesync").description("Unified AI rules management CLI tool").version("0.47.0");
2370
+ program.name("rulesync").description("Unified AI rules management CLI tool").version("0.48.0");
2364
2371
  program.command("init").description("Initialize rulesync in current directory").action(initCommand);
2365
2372
  program.command("add <filename>").description("Add a new rule file").action(addCommand);
2366
2373
  program.command("gitignore").description("Add generated files to .gitignore").action(gitignoreCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rulesync",
3
- "version": "0.47.0",
3
+ "version": "0.48.0",
4
4
  "description": "Unified AI rules management CLI tool that generates configuration files for various AI development tools",
5
5
  "keywords": [
6
6
  "ai",