rulesync 0.43.0 → 0.45.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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldIncludeServer
3
- } from "./chunk-THWXK5Z2.js";
3
+ } from "./chunk-I5XVU7C6.js";
4
4
 
5
5
  // src/generators/mcp/claudecode.ts
6
6
  function generateClaudeMcp(config) {
@@ -30,7 +30,9 @@ function generateClaudeMcp(config) {
30
30
  if (server.env) {
31
31
  claudeServer.env = server.env;
32
32
  }
33
- claudeSettings.mcpServers[serverName] = claudeServer;
33
+ if (claudeSettings.mcpServers) {
34
+ claudeSettings.mcpServers[serverName] = claudeServer;
35
+ }
34
36
  }
35
37
  return JSON.stringify(claudeSettings, null, 2);
36
38
  }
@@ -44,15 +46,17 @@ function generateClaudeMcpConfiguration(mcpServers, baseDir = "") {
44
46
  continue;
45
47
  }
46
48
  const { targets: _, transport, ...serverConfig } = server;
47
- const claudeServer = serverConfig;
49
+ const claudeServer = { ...serverConfig };
48
50
  if (serverConfig.httpUrl !== void 0) {
49
51
  claudeServer.url = serverConfig.httpUrl;
50
52
  delete claudeServer.httpUrl;
51
53
  }
52
- if (transport && transport !== "stdio") {
54
+ if (transport && transport !== "stdio" && (transport === "sse" || transport === "http")) {
53
55
  claudeServer.transport = transport;
54
56
  }
55
- settings.mcpServers[serverName] = claudeServer;
57
+ if (settings.mcpServers) {
58
+ settings.mcpServers[serverName] = claudeServer;
59
+ }
56
60
  }
57
61
  return [
58
62
  {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldIncludeServer
3
- } from "./chunk-THWXK5Z2.js";
3
+ } from "./chunk-I5XVU7C6.js";
4
4
 
5
5
  // src/generators/mcp/cline.ts
6
6
  function generateClineMcp(config) {
@@ -45,7 +45,7 @@ function generateClineMcpConfiguration(mcpServers, baseDir = "") {
45
45
  continue;
46
46
  }
47
47
  const { targets: _, ...serverConfig } = server;
48
- config.mcpServers[serverName] = serverConfig;
48
+ config.mcpServers[serverName] = { ...serverConfig };
49
49
  }
50
50
  return [
51
51
  {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldIncludeServer
3
- } from "./chunk-THWXK5Z2.js";
3
+ } from "./chunk-I5XVU7C6.js";
4
4
 
5
5
  // src/generators/mcp/geminicli.ts
6
6
  function generateGeminiCliMcp(config) {
@@ -50,7 +50,7 @@ function generateGeminiCliMcpConfiguration(mcpServers, baseDir = "") {
50
50
  continue;
51
51
  }
52
52
  const { targets: _, ...serverConfig } = server;
53
- config.mcpServers[serverName] = serverConfig;
53
+ config.mcpServers[serverName] = { ...serverConfig };
54
54
  }
55
55
  return [
56
56
  {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldIncludeServer
3
- } from "./chunk-THWXK5Z2.js";
3
+ } from "./chunk-I5XVU7C6.js";
4
4
 
5
5
  // src/generators/mcp/cursor.ts
6
6
  function generateCursorMcp(config) {
@@ -40,15 +40,11 @@ function generateCursorMcpConfiguration(mcpServers, baseDir = "") {
40
40
  mcpServers: {}
41
41
  };
42
42
  for (const [serverName, server] of Object.entries(mcpServers)) {
43
- if (!server || typeof server !== "object") {
43
+ if (!shouldIncludeServer(server, "cursor")) {
44
44
  continue;
45
45
  }
46
- const serverObj = server;
47
- if (!shouldIncludeServer(serverObj, "cursor")) {
48
- continue;
49
- }
50
- const { targets: _targets, ...serverConfig } = serverObj;
51
- const cursorServer = serverConfig;
46
+ const { targets: _targets, ...serverConfig } = server;
47
+ const cursorServer = { ...serverConfig };
52
48
  if (serverConfig.httpUrl !== void 0) {
53
49
  cursorServer.url = serverConfig.httpUrl;
54
50
  delete cursorServer.httpUrl;
@@ -1,5 +1,5 @@
1
1
  // src/types/tool-targets.ts
2
- import { z } from "zod/v4";
2
+ import { z } from "zod/v4-mini";
3
3
  var ToolTargetSchema = z.enum([
4
4
  "copilot",
5
5
  "cursor",
@@ -31,5 +31,8 @@ function shouldIncludeServer(server, targetTool) {
31
31
  }
32
32
 
33
33
  export {
34
+ ToolTargetSchema,
35
+ ToolTargetsSchema,
36
+ RulesyncTargetsSchema,
34
37
  shouldIncludeServer
35
38
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldIncludeServer
3
- } from "./chunk-THWXK5Z2.js";
3
+ } from "./chunk-I5XVU7C6.js";
4
4
 
5
5
  // src/generators/mcp/roo.ts
6
6
  function generateRooMcp(config) {
@@ -53,15 +53,11 @@ function generateRooMcpConfiguration(mcpServers, baseDir = "") {
53
53
  mcpServers: {}
54
54
  };
55
55
  for (const [serverName, server] of Object.entries(mcpServers)) {
56
- if (!server || typeof server !== "object") {
56
+ if (!shouldIncludeServer(server, "roo")) {
57
57
  continue;
58
58
  }
59
- const serverObj = server;
60
- if (!shouldIncludeServer(serverObj, "roo")) {
61
- continue;
62
- }
63
- const { targets: _targets, ...serverConfig } = serverObj;
64
- const rooServer = serverConfig;
59
+ const { targets: _targets, ...serverConfig } = server;
60
+ const rooServer = { ...serverConfig };
65
61
  if (serverConfig.httpUrl !== void 0 && serverConfig.url !== void 0) {
66
62
  rooServer.url = serverConfig.httpUrl;
67
63
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldIncludeServer
3
- } from "./chunk-THWXK5Z2.js";
3
+ } from "./chunk-I5XVU7C6.js";
4
4
 
5
5
  // src/generators/mcp/copilot.ts
6
6
  function generateCopilotMcp(config, target) {
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generateClaudeMcp,
3
3
  generateClaudeMcpConfiguration
4
- } from "./chunk-B3627VQY.js";
5
- import "./chunk-THWXK5Z2.js";
4
+ } from "./chunk-22GWBUIP.js";
5
+ import "./chunk-I5XVU7C6.js";
6
6
  export {
7
7
  generateClaudeMcp,
8
8
  generateClaudeMcpConfiguration
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generateClineMcp,
3
3
  generateClineMcpConfiguration
4
- } from "./chunk-XHRBWFGI.js";
5
- import "./chunk-THWXK5Z2.js";
4
+ } from "./chunk-BD37M3ZH.js";
5
+ import "./chunk-I5XVU7C6.js";
6
6
  export {
7
7
  generateClineMcp,
8
8
  generateClineMcpConfiguration
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generateCopilotMcp,
3
3
  generateCopilotMcpConfiguration
4
- } from "./chunk-2FR4Z37J.js";
5
- import "./chunk-THWXK5Z2.js";
4
+ } from "./chunk-ZORSPGDD.js";
5
+ import "./chunk-I5XVU7C6.js";
6
6
  export {
7
7
  generateCopilotMcp,
8
8
  generateCopilotMcpConfiguration
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generateCursorMcp,
3
3
  generateCursorMcpConfiguration
4
- } from "./chunk-ZMAL5LIX.js";
5
- import "./chunk-THWXK5Z2.js";
4
+ } from "./chunk-FAZT3ILF.js";
5
+ import "./chunk-I5XVU7C6.js";
6
6
  export {
7
7
  generateCursorMcp,
8
8
  generateCursorMcpConfiguration
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generateGeminiCliMcp,
3
3
  generateGeminiCliMcpConfiguration
4
- } from "./chunk-TCK42GOL.js";
5
- import "./chunk-THWXK5Z2.js";
4
+ } from "./chunk-DCSO5MY7.js";
5
+ import "./chunk-I5XVU7C6.js";
6
6
  export {
7
7
  generateGeminiCliMcp,
8
8
  generateGeminiCliMcpConfiguration