rulesync 7.19.0 → 7.21.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/README.md +1 -0
- package/dist/{chunk-J2ZF4SHC.js → chunk-UYWCICY6.js} +893 -701
- package/dist/cli/index.cjs +1313 -1044
- package/dist/cli/index.js +332 -257
- package/dist/index.cjs +750 -651
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +7 -7
- package/package.json +2 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod/mini';
|
|
2
2
|
|
|
3
|
-
declare const ALL_TOOL_TARGETS: readonly ["agentsmd", "agentsskills", "antigravity", "augmentcode", "augmentcode-legacy", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "cursor", "factorydroid", "geminicli", "goose", "junie", "kilo", "kiro", "opencode", "qwencode", "replit", "roo", "warp", "windsurf", "zed"];
|
|
3
|
+
declare const ALL_TOOL_TARGETS: readonly ["agentsmd", "agentsskills", "antigravity", "augmentcode", "augmentcode-legacy", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "factorydroid", "geminicli", "goose", "junie", "kilo", "kiro", "opencode", "qwencode", "replit", "roo", "warp", "windsurf", "zed"];
|
|
4
4
|
declare const ToolTargetSchema: z.ZodMiniEnum<{
|
|
5
5
|
agentsmd: "agentsmd";
|
|
6
6
|
agentsskills: "agentsskills";
|
|
@@ -12,6 +12,7 @@ declare const ToolTargetSchema: z.ZodMiniEnum<{
|
|
|
12
12
|
cline: "cline";
|
|
13
13
|
codexcli: "codexcli";
|
|
14
14
|
copilot: "copilot";
|
|
15
|
+
copilotcli: "copilotcli";
|
|
15
16
|
cursor: "cursor";
|
|
16
17
|
factorydroid: "factorydroid";
|
|
17
18
|
geminicli: "geminicli";
|
|
@@ -147,6 +148,7 @@ declare const RulesyncSkillFrontmatterSchemaInternal: z.ZodMiniObject<{
|
|
|
147
148
|
cline: "cline";
|
|
148
149
|
codexcli: "codexcli";
|
|
149
150
|
copilot: "copilot";
|
|
151
|
+
copilotcli: "copilotcli";
|
|
150
152
|
cursor: "cursor";
|
|
151
153
|
factorydroid: "factorydroid";
|
|
152
154
|
geminicli: "geminicli";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod/mini';
|
|
2
2
|
|
|
3
|
-
declare const ALL_TOOL_TARGETS: readonly ["agentsmd", "agentsskills", "antigravity", "augmentcode", "augmentcode-legacy", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "cursor", "factorydroid", "geminicli", "goose", "junie", "kilo", "kiro", "opencode", "qwencode", "replit", "roo", "warp", "windsurf", "zed"];
|
|
3
|
+
declare const ALL_TOOL_TARGETS: readonly ["agentsmd", "agentsskills", "antigravity", "augmentcode", "augmentcode-legacy", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "factorydroid", "geminicli", "goose", "junie", "kilo", "kiro", "opencode", "qwencode", "replit", "roo", "warp", "windsurf", "zed"];
|
|
4
4
|
declare const ToolTargetSchema: z.ZodMiniEnum<{
|
|
5
5
|
agentsmd: "agentsmd";
|
|
6
6
|
agentsskills: "agentsskills";
|
|
@@ -12,6 +12,7 @@ declare const ToolTargetSchema: z.ZodMiniEnum<{
|
|
|
12
12
|
cline: "cline";
|
|
13
13
|
codexcli: "codexcli";
|
|
14
14
|
copilot: "copilot";
|
|
15
|
+
copilotcli: "copilotcli";
|
|
15
16
|
cursor: "cursor";
|
|
16
17
|
factorydroid: "factorydroid";
|
|
17
18
|
geminicli: "geminicli";
|
|
@@ -147,6 +148,7 @@ declare const RulesyncSkillFrontmatterSchemaInternal: z.ZodMiniObject<{
|
|
|
147
148
|
cline: "cline";
|
|
148
149
|
codexcli: "codexcli";
|
|
149
150
|
copilot: "copilot";
|
|
151
|
+
copilotcli: "copilotcli";
|
|
150
152
|
cursor: "cursor";
|
|
151
153
|
factorydroid: "factorydroid";
|
|
152
154
|
geminicli: "geminicli";
|
package/dist/index.js
CHANGED
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
ALL_FEATURES,
|
|
3
3
|
ALL_TOOL_TARGETS,
|
|
4
4
|
ConfigResolver,
|
|
5
|
+
ConsoleLogger,
|
|
5
6
|
checkRulesyncDirExists,
|
|
6
7
|
generate,
|
|
7
|
-
importFromTool
|
|
8
|
-
|
|
9
|
-
} from "./chunk-J2ZF4SHC.js";
|
|
8
|
+
importFromTool
|
|
9
|
+
} from "./chunk-UYWCICY6.js";
|
|
10
10
|
|
|
11
11
|
// src/index.ts
|
|
12
12
|
async function generate2(options = {}) {
|
|
13
13
|
const { silent = true, verbose = false, ...rest } = options;
|
|
14
|
-
logger
|
|
14
|
+
const logger = new ConsoleLogger({ verbose, silent });
|
|
15
15
|
const config = await ConfigResolver.resolve({
|
|
16
16
|
...rest,
|
|
17
17
|
verbose,
|
|
@@ -22,18 +22,18 @@ async function generate2(options = {}) {
|
|
|
22
22
|
throw new Error(".rulesync directory not found. Run 'rulesync init' first.");
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
return generate({ config });
|
|
25
|
+
return generate({ config, logger });
|
|
26
26
|
}
|
|
27
27
|
async function importFromTool2(options) {
|
|
28
28
|
const { target, silent = true, verbose = false, ...rest } = options;
|
|
29
|
-
logger
|
|
29
|
+
const logger = new ConsoleLogger({ verbose, silent });
|
|
30
30
|
const config = await ConfigResolver.resolve({
|
|
31
31
|
...rest,
|
|
32
32
|
targets: [target],
|
|
33
33
|
verbose,
|
|
34
34
|
silent
|
|
35
35
|
});
|
|
36
|
-
return importFromTool({ config, tool: target });
|
|
36
|
+
return importFromTool({ config, tool: target, logger });
|
|
37
37
|
}
|
|
38
38
|
export {
|
|
39
39
|
ALL_FEATURES,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rulesync",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.21.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",
|
|
@@ -54,7 +54,6 @@
|
|
|
54
54
|
"@toon-format/toon": "2.1.0",
|
|
55
55
|
"@valibot/to-json-schema": "1.5.0",
|
|
56
56
|
"commander": "14.0.3",
|
|
57
|
-
"consola": "3.4.2",
|
|
58
57
|
"effect": "3.19.19",
|
|
59
58
|
"es-toolkit": "1.45.1",
|
|
60
59
|
"fastmcp": "3.34.0",
|
|
@@ -115,7 +114,7 @@
|
|
|
115
114
|
"dev": "tsx src/cli/index.ts",
|
|
116
115
|
"docs:build": "vitepress build docs",
|
|
117
116
|
"docs:dev": "vitepress dev docs",
|
|
118
|
-
"docs:preview": "vitepress
|
|
117
|
+
"docs:preview": "vitepress preview docs",
|
|
119
118
|
"eslint": "eslint . --max-warnings 0 --cache",
|
|
120
119
|
"eslint:fix": "eslint . --fix --max-warnings 0 --cache",
|
|
121
120
|
"fix": "pnpm run fmt && pnpm run oxlint:fix && pnpm run eslint:fix",
|