rulesync 0.67.0 → 0.69.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,117 +0,0 @@
1
- import {
2
- shouldIncludeServer
3
- } from "./chunk-CS7AV6JT.js";
4
-
5
- // src/generators/mcp/augmentcode.ts
6
- function generateAugmentcodeMcp(config) {
7
- const augmentSettings = {
8
- mcpServers: []
9
- };
10
- const shouldInclude = (server) => {
11
- return shouldIncludeServer(server, "augmentcode");
12
- };
13
- for (const [serverName, server] of Object.entries(config.mcpServers)) {
14
- if (!shouldInclude(server)) continue;
15
- const augmentServer = {
16
- name: serverName
17
- };
18
- if (server.command) {
19
- const command = Array.isArray(server.command) ? server.command[0] : server.command;
20
- if (command) {
21
- augmentServer.command = command;
22
- }
23
- if (server.args) {
24
- augmentServer.args = server.args;
25
- }
26
- } else if (server.url || server.httpUrl) {
27
- const url = server.httpUrl || server.url;
28
- if (url) {
29
- augmentServer.url = url;
30
- }
31
- if (server.httpUrl || server.transport === "http") {
32
- augmentServer.transport = "http";
33
- } else if (server.transport === "sse") {
34
- augmentServer.transport = "sse";
35
- }
36
- if (server.env) {
37
- augmentServer.headers = server.env;
38
- }
39
- }
40
- if (server.env && server.command) {
41
- augmentServer.env = server.env;
42
- }
43
- if (server.timeout) {
44
- augmentServer.timeout = server.timeout;
45
- }
46
- if (server.disabled !== void 0) {
47
- augmentServer.enabled = !server.disabled;
48
- }
49
- if (server.networkTimeout && server.networkTimeout > 0) {
50
- augmentServer.retries = Math.max(1, Math.floor(server.networkTimeout / 3e4));
51
- }
52
- if (augmentSettings.mcpServers) {
53
- augmentSettings.mcpServers.push(augmentServer);
54
- }
55
- }
56
- return JSON.stringify(augmentSettings, null, 2);
57
- }
58
- function generateAugmentcodeMcpConfiguration(mcpServers, baseDir = "") {
59
- const filepath = baseDir ? `${baseDir}/.mcp.json` : ".mcp.json";
60
- const settings = {
61
- mcpServers: {}
62
- };
63
- for (const [serverName, server] of Object.entries(mcpServers)) {
64
- if (!shouldIncludeServer(server, "augmentcode")) {
65
- continue;
66
- }
67
- const { targets: _, ...serverConfig } = server;
68
- const augmentServer = {};
69
- if (serverConfig.command) {
70
- const command = Array.isArray(serverConfig.command) ? serverConfig.command[0] : serverConfig.command;
71
- if (command) {
72
- augmentServer.command = command;
73
- }
74
- if (serverConfig.args) {
75
- augmentServer.args = serverConfig.args;
76
- }
77
- if (serverConfig.env) {
78
- augmentServer.env = serverConfig.env;
79
- }
80
- } else if (serverConfig.url || serverConfig.httpUrl) {
81
- const url = serverConfig.httpUrl || serverConfig.url;
82
- if (url) {
83
- augmentServer.url = url;
84
- }
85
- if (serverConfig.httpUrl || serverConfig.transport === "http") {
86
- augmentServer.transport = "http";
87
- } else if (serverConfig.transport === "sse") {
88
- augmentServer.transport = "sse";
89
- }
90
- if (serverConfig.env) {
91
- augmentServer.headers = serverConfig.env;
92
- }
93
- }
94
- if (serverConfig.timeout) {
95
- augmentServer.timeout = serverConfig.timeout;
96
- }
97
- if (serverConfig.disabled !== void 0) {
98
- augmentServer.enabled = !serverConfig.disabled;
99
- }
100
- if (serverConfig.networkTimeout && serverConfig.networkTimeout > 0) {
101
- augmentServer.retries = Math.max(1, Math.floor(serverConfig.networkTimeout / 3e4));
102
- }
103
- settings.mcpServers[serverName] = augmentServer;
104
- }
105
- return [
106
- {
107
- filepath,
108
- content: `${JSON.stringify(settings, null, 2)}
109
- `
110
- }
111
- ];
112
- }
113
-
114
- export {
115
- generateAugmentcodeMcp,
116
- generateAugmentcodeMcpConfiguration
117
- };
@@ -1,17 +0,0 @@
1
- import {
2
- generateMcpConfigurationFilesFromRegistry,
3
- generateMcpFromRegistry
4
- } from "./chunk-V36ICGOY.js";
5
-
6
- // src/generators/mcp/qwencode.ts
7
- function generateQwenCodeMcp(config) {
8
- return generateMcpFromRegistry("qwencode", config);
9
- }
10
- function generateQwenCodeMcpConfiguration(mcpServers, baseDir = "") {
11
- return generateMcpConfigurationFilesFromRegistry("qwencode", mcpServers, baseDir);
12
- }
13
-
14
- export {
15
- generateQwenCodeMcp,
16
- generateQwenCodeMcpConfiguration
17
- };
@@ -1,10 +0,0 @@
1
- import {
2
- generateClaudeMcp,
3
- generateClaudeMcpConfiguration
4
- } from "./chunk-35VMCHXQ.js";
5
- import "./chunk-V36ICGOY.js";
6
- import "./chunk-CS7AV6JT.js";
7
- export {
8
- generateClaudeMcp,
9
- generateClaudeMcpConfiguration
10
- };
@@ -1,10 +0,0 @@
1
- import {
2
- generateClineMcp,
3
- generateClineMcpConfiguration
4
- } from "./chunk-OARJESSZ.js";
5
- import "./chunk-V36ICGOY.js";
6
- import "./chunk-CS7AV6JT.js";
7
- export {
8
- generateClineMcp,
9
- generateClineMcpConfiguration
10
- };
@@ -1,10 +0,0 @@
1
- import {
2
- generateCodexMcp,
3
- generateCodexMcpConfiguration
4
- } from "./chunk-B2HD24KC.js";
5
- import "./chunk-V36ICGOY.js";
6
- import "./chunk-CS7AV6JT.js";
7
- export {
8
- generateCodexMcp,
9
- generateCodexMcpConfiguration
10
- };
@@ -1,9 +0,0 @@
1
- import {
2
- generateCopilotMcp,
3
- generateCopilotMcpConfiguration
4
- } from "./chunk-7BIZ5Y6F.js";
5
- import "./chunk-CS7AV6JT.js";
6
- export {
7
- generateCopilotMcp,
8
- generateCopilotMcpConfiguration
9
- };
@@ -1,10 +0,0 @@
1
- import {
2
- generateCursorMcp,
3
- generateCursorMcpConfiguration
4
- } from "./chunk-WCON5BAI.js";
5
- import "./chunk-V36ICGOY.js";
6
- import "./chunk-CS7AV6JT.js";
7
- export {
8
- generateCursorMcp,
9
- generateCursorMcpConfiguration
10
- };
@@ -1,10 +0,0 @@
1
- import {
2
- generateGeminiCliMcp,
3
- generateGeminiCliMcpConfiguration
4
- } from "./chunk-KONQNQY3.js";
5
- import "./chunk-V36ICGOY.js";
6
- import "./chunk-CS7AV6JT.js";
7
- export {
8
- generateGeminiCliMcp,
9
- generateGeminiCliMcpConfiguration
10
- };
@@ -1,10 +0,0 @@
1
- import {
2
- generateJunieMcp,
3
- generateJunieMcpConfiguration
4
- } from "./chunk-WYYQXVHC.js";
5
- import "./chunk-V36ICGOY.js";
6
- import "./chunk-CS7AV6JT.js";
7
- export {
8
- generateJunieMcp,
9
- generateJunieMcpConfiguration
10
- };
@@ -1,9 +0,0 @@
1
- import {
2
- generateKiroMcp,
3
- generateKiroMcpConfiguration
4
- } from "./chunk-3QGD3CH5.js";
5
- import "./chunk-CS7AV6JT.js";
6
- export {
7
- generateKiroMcp,
8
- generateKiroMcpConfiguration
9
- };
@@ -1,17 +0,0 @@
1
- import {
2
- generateMcpConfigurationFilesFromRegistry,
3
- generateMcpFromRegistry
4
- } from "./chunk-V36ICGOY.js";
5
- import "./chunk-CS7AV6JT.js";
6
-
7
- // src/generators/mcp/opencode.ts
8
- function generateOpenCodeMcp(config) {
9
- return generateMcpFromRegistry("opencode", config);
10
- }
11
- function generateOpenCodeMcpConfiguration(mcpServers, baseDir = "") {
12
- return generateMcpConfigurationFilesFromRegistry("opencode", mcpServers, baseDir);
13
- }
14
- export {
15
- generateOpenCodeMcp,
16
- generateOpenCodeMcpConfiguration
17
- };
@@ -1,10 +0,0 @@
1
- import {
2
- generateQwenCodeMcp,
3
- generateQwenCodeMcpConfiguration
4
- } from "./chunk-ZMGXHLYP.js";
5
- import "./chunk-V36ICGOY.js";
6
- import "./chunk-CS7AV6JT.js";
7
- export {
8
- generateQwenCodeMcp,
9
- generateQwenCodeMcpConfiguration
10
- };
@@ -1,10 +0,0 @@
1
- import {
2
- generateRooMcp,
3
- generateRooMcpConfiguration
4
- } from "./chunk-5GKH5TQ4.js";
5
- import "./chunk-V36ICGOY.js";
6
- import "./chunk-CS7AV6JT.js";
7
- export {
8
- generateRooMcp,
9
- generateRooMcpConfiguration
10
- };
@@ -1,10 +0,0 @@
1
- import {
2
- generateWindsurfMcp,
3
- generateWindsurfMcpConfiguration
4
- } from "./chunk-7QVQO6MQ.js";
5
- import "./chunk-V36ICGOY.js";
6
- import "./chunk-CS7AV6JT.js";
7
- export {
8
- generateWindsurfMcp,
9
- generateWindsurfMcpConfiguration
10
- };