rulesync 0.41.0 → 0.42.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/{chunk-QR656A7R.js → chunk-2SPL7QTK.js} +1 -1
- package/dist/{chunk-PPX47BRK.js → chunk-3NRSCDLQ.js} +1 -1
- package/dist/{chunk-4SFPBBIB.js → chunk-D3YGI36J.js} +1 -1
- package/dist/{chunk-CUKKFQFO.js → chunk-HMMPZV7X.js} +1 -1
- package/dist/{chunk-XN7RGMJW.js → chunk-X3FEMISQ.js} +1 -1
- package/dist/{claude-JS6ARGB3.js → claude-3YGZIO5F.js} +1 -1
- package/dist/{cline-MM3R4QQE.js → cline-ERYW7TOO.js} +1 -1
- package/dist/{cursor-AU3PRMGD.js → cursor-CX55HMO4.js} +1 -1
- package/dist/{geminicli-LINS3RMZ.js → geminicli-XHQR4RCQ.js} +1 -1
- package/dist/index.cjs +11 -31
- package/dist/index.js +11 -31
- package/dist/{roo-KUGAURJB.js → roo-OKE7XF3B.js} +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -92,7 +92,7 @@ var init_mcp_helpers = __esm({
|
|
|
92
92
|
});
|
|
93
93
|
|
|
94
94
|
// src/generators/mcp/claude.ts
|
|
95
|
-
function generateClaudeMcp(config
|
|
95
|
+
function generateClaudeMcp(config) {
|
|
96
96
|
const claudeSettings = {
|
|
97
97
|
mcpServers: {}
|
|
98
98
|
};
|
|
@@ -131,7 +131,7 @@ var init_claude = __esm({
|
|
|
131
131
|
});
|
|
132
132
|
|
|
133
133
|
// src/generators/mcp/cline.ts
|
|
134
|
-
function generateClineMcp(config
|
|
134
|
+
function generateClineMcp(config) {
|
|
135
135
|
const clineConfig = {
|
|
136
136
|
mcpServers: {}
|
|
137
137
|
};
|
|
@@ -230,7 +230,7 @@ var init_copilot = __esm({
|
|
|
230
230
|
});
|
|
231
231
|
|
|
232
232
|
// src/generators/mcp/cursor.ts
|
|
233
|
-
function generateCursorMcp(config
|
|
233
|
+
function generateCursorMcp(config) {
|
|
234
234
|
const cursorConfig = {
|
|
235
235
|
mcpServers: {}
|
|
236
236
|
};
|
|
@@ -269,7 +269,7 @@ var init_cursor = __esm({
|
|
|
269
269
|
});
|
|
270
270
|
|
|
271
271
|
// src/generators/mcp/geminicli.ts
|
|
272
|
-
function generateGeminiCliMcp(config
|
|
272
|
+
function generateGeminiCliMcp(config) {
|
|
273
273
|
const geminiSettings = {
|
|
274
274
|
mcpServers: {}
|
|
275
275
|
};
|
|
@@ -314,7 +314,7 @@ var init_geminicli = __esm({
|
|
|
314
314
|
});
|
|
315
315
|
|
|
316
316
|
// src/generators/mcp/roo.ts
|
|
317
|
-
function generateRooMcp(config
|
|
317
|
+
function generateRooMcp(config) {
|
|
318
318
|
const rooConfig = {
|
|
319
319
|
mcpServers: {}
|
|
320
320
|
};
|
|
@@ -1160,7 +1160,6 @@ async function validateRule(rule) {
|
|
|
1160
1160
|
}
|
|
1161
1161
|
|
|
1162
1162
|
// src/core/mcp-generator.ts
|
|
1163
|
-
var import_node_os = __toESM(require("os"), 1);
|
|
1164
1163
|
var import_node_path13 = __toESM(require("path"), 1);
|
|
1165
1164
|
|
|
1166
1165
|
// src/generators/mcp/index.ts
|
|
@@ -1212,7 +1211,7 @@ async function generateMcpConfigs(projectRoot, baseDir) {
|
|
|
1212
1211
|
{
|
|
1213
1212
|
tool: "claude-project",
|
|
1214
1213
|
path: import_node_path13.default.join(targetRoot, ".mcp.json"),
|
|
1215
|
-
generate: () => generateClaudeMcp(config
|
|
1214
|
+
generate: () => generateClaudeMcp(config)
|
|
1216
1215
|
},
|
|
1217
1216
|
{
|
|
1218
1217
|
tool: "copilot-editor",
|
|
@@ -1222,43 +1221,24 @@ async function generateMcpConfigs(projectRoot, baseDir) {
|
|
|
1222
1221
|
{
|
|
1223
1222
|
tool: "cursor-project",
|
|
1224
1223
|
path: import_node_path13.default.join(targetRoot, ".cursor", "mcp.json"),
|
|
1225
|
-
generate: () => generateCursorMcp(config
|
|
1224
|
+
generate: () => generateCursorMcp(config)
|
|
1226
1225
|
},
|
|
1227
1226
|
{
|
|
1228
1227
|
tool: "cline-project",
|
|
1229
1228
|
path: import_node_path13.default.join(targetRoot, ".cline", "mcp.json"),
|
|
1230
|
-
generate: () => generateClineMcp(config
|
|
1229
|
+
generate: () => generateClineMcp(config)
|
|
1231
1230
|
},
|
|
1232
1231
|
{
|
|
1233
1232
|
tool: "gemini-project",
|
|
1234
1233
|
path: import_node_path13.default.join(targetRoot, ".gemini", "settings.json"),
|
|
1235
|
-
generate: () => generateGeminiCliMcp(config
|
|
1234
|
+
generate: () => generateGeminiCliMcp(config)
|
|
1236
1235
|
},
|
|
1237
1236
|
{
|
|
1238
1237
|
tool: "roo-project",
|
|
1239
1238
|
path: import_node_path13.default.join(targetRoot, ".roo", "mcp.json"),
|
|
1240
|
-
generate: () => generateRooMcp(config
|
|
1239
|
+
generate: () => generateRooMcp(config)
|
|
1241
1240
|
}
|
|
1242
1241
|
];
|
|
1243
|
-
if (!baseDir) {
|
|
1244
|
-
generators.push(
|
|
1245
|
-
{
|
|
1246
|
-
tool: "claude-global",
|
|
1247
|
-
path: import_node_path13.default.join(import_node_os.default.homedir(), ".claude", "settings.json"),
|
|
1248
|
-
generate: () => generateClaudeMcp(config, "global")
|
|
1249
|
-
},
|
|
1250
|
-
{
|
|
1251
|
-
tool: "cursor-global",
|
|
1252
|
-
path: import_node_path13.default.join(import_node_os.default.homedir(), ".cursor", "mcp.json"),
|
|
1253
|
-
generate: () => generateCursorMcp(config, "global")
|
|
1254
|
-
},
|
|
1255
|
-
{
|
|
1256
|
-
tool: "gemini-global",
|
|
1257
|
-
path: import_node_path13.default.join(import_node_os.default.homedir(), ".gemini", "settings.json"),
|
|
1258
|
-
generate: () => generateGeminiCliMcp(config, "global")
|
|
1259
|
-
}
|
|
1260
|
-
);
|
|
1261
|
-
}
|
|
1262
1242
|
for (const generator of generators) {
|
|
1263
1243
|
try {
|
|
1264
1244
|
const content = generator.generate();
|
|
@@ -2637,7 +2617,7 @@ async function watchCommand() {
|
|
|
2637
2617
|
|
|
2638
2618
|
// src/cli/index.ts
|
|
2639
2619
|
var program = new import_commander.Command();
|
|
2640
|
-
program.name("rulesync").description("Unified AI rules management CLI tool").version("0.
|
|
2620
|
+
program.name("rulesync").description("Unified AI rules management CLI tool").version("0.42.0");
|
|
2641
2621
|
program.command("init").description("Initialize rulesync in current directory").action(initCommand);
|
|
2642
2622
|
program.command("add <filename>").description("Add a new rule file").action(addCommand);
|
|
2643
2623
|
program.command("gitignore").description("Add generated files to .gitignore").action(gitignoreCommand);
|
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
generateClaudeMcp
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HMMPZV7X.js";
|
|
5
5
|
import {
|
|
6
6
|
generateClineMcp
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-X3FEMISQ.js";
|
|
8
8
|
import {
|
|
9
9
|
generateCopilotMcp
|
|
10
10
|
} from "./chunk-SXEFNT27.js";
|
|
11
11
|
import {
|
|
12
12
|
generateCursorMcp
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-D3YGI36J.js";
|
|
14
14
|
import {
|
|
15
15
|
generateGeminiCliMcp
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2SPL7QTK.js";
|
|
17
17
|
import {
|
|
18
18
|
generateRooMcp
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3NRSCDLQ.js";
|
|
20
20
|
import "./chunk-6YNGMPAL.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/index.ts
|
|
@@ -814,7 +814,6 @@ async function validateRule(rule) {
|
|
|
814
814
|
}
|
|
815
815
|
|
|
816
816
|
// src/core/mcp-generator.ts
|
|
817
|
-
import os from "os";
|
|
818
817
|
import path3 from "path";
|
|
819
818
|
|
|
820
819
|
// src/core/mcp-parser.ts
|
|
@@ -858,7 +857,7 @@ async function generateMcpConfigs(projectRoot, baseDir) {
|
|
|
858
857
|
{
|
|
859
858
|
tool: "claude-project",
|
|
860
859
|
path: path3.join(targetRoot, ".mcp.json"),
|
|
861
|
-
generate: () => generateClaudeMcp(config
|
|
860
|
+
generate: () => generateClaudeMcp(config)
|
|
862
861
|
},
|
|
863
862
|
{
|
|
864
863
|
tool: "copilot-editor",
|
|
@@ -868,43 +867,24 @@ async function generateMcpConfigs(projectRoot, baseDir) {
|
|
|
868
867
|
{
|
|
869
868
|
tool: "cursor-project",
|
|
870
869
|
path: path3.join(targetRoot, ".cursor", "mcp.json"),
|
|
871
|
-
generate: () => generateCursorMcp(config
|
|
870
|
+
generate: () => generateCursorMcp(config)
|
|
872
871
|
},
|
|
873
872
|
{
|
|
874
873
|
tool: "cline-project",
|
|
875
874
|
path: path3.join(targetRoot, ".cline", "mcp.json"),
|
|
876
|
-
generate: () => generateClineMcp(config
|
|
875
|
+
generate: () => generateClineMcp(config)
|
|
877
876
|
},
|
|
878
877
|
{
|
|
879
878
|
tool: "gemini-project",
|
|
880
879
|
path: path3.join(targetRoot, ".gemini", "settings.json"),
|
|
881
|
-
generate: () => generateGeminiCliMcp(config
|
|
880
|
+
generate: () => generateGeminiCliMcp(config)
|
|
882
881
|
},
|
|
883
882
|
{
|
|
884
883
|
tool: "roo-project",
|
|
885
884
|
path: path3.join(targetRoot, ".roo", "mcp.json"),
|
|
886
|
-
generate: () => generateRooMcp(config
|
|
885
|
+
generate: () => generateRooMcp(config)
|
|
887
886
|
}
|
|
888
887
|
];
|
|
889
|
-
if (!baseDir) {
|
|
890
|
-
generators.push(
|
|
891
|
-
{
|
|
892
|
-
tool: "claude-global",
|
|
893
|
-
path: path3.join(os.homedir(), ".claude", "settings.json"),
|
|
894
|
-
generate: () => generateClaudeMcp(config, "global")
|
|
895
|
-
},
|
|
896
|
-
{
|
|
897
|
-
tool: "cursor-global",
|
|
898
|
-
path: path3.join(os.homedir(), ".cursor", "mcp.json"),
|
|
899
|
-
generate: () => generateCursorMcp(config, "global")
|
|
900
|
-
},
|
|
901
|
-
{
|
|
902
|
-
tool: "gemini-global",
|
|
903
|
-
path: path3.join(os.homedir(), ".gemini", "settings.json"),
|
|
904
|
-
generate: () => generateGeminiCliMcp(config, "global")
|
|
905
|
-
}
|
|
906
|
-
);
|
|
907
|
-
}
|
|
908
888
|
for (const generator of generators) {
|
|
909
889
|
try {
|
|
910
890
|
const content = generator.generate();
|
|
@@ -2283,7 +2263,7 @@ async function watchCommand() {
|
|
|
2283
2263
|
|
|
2284
2264
|
// src/cli/index.ts
|
|
2285
2265
|
var program = new Command();
|
|
2286
|
-
program.name("rulesync").description("Unified AI rules management CLI tool").version("0.
|
|
2266
|
+
program.name("rulesync").description("Unified AI rules management CLI tool").version("0.42.0");
|
|
2287
2267
|
program.command("init").description("Initialize rulesync in current directory").action(initCommand);
|
|
2288
2268
|
program.command("add <filename>").description("Add a new rule file").action(addCommand);
|
|
2289
2269
|
program.command("gitignore").description("Add generated files to .gitignore").action(gitignoreCommand);
|