rulesync 7.20.0 → 7.22.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 +3 -2
- package/dist/{chunk-5OPNV62F.js → chunk-4WYBBN4I.js} +901 -666
- package/dist/cli/index.cjs +1393 -1077
- package/dist/cli/index.js +333 -254
- package/dist/index.cjs +776 -550
- package/dist/index.d.cts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +7 -7
- package/package.json +21 -17
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";
|
|
@@ -29,7 +30,7 @@ declare const ToolTargetSchema: z.ZodMiniEnum<{
|
|
|
29
30
|
}>;
|
|
30
31
|
type ToolTarget = z.infer<typeof ToolTargetSchema>;
|
|
31
32
|
|
|
32
|
-
declare const ALL_FEATURES: readonly ["rules", "ignore", "mcp", "subagents", "commands", "skills", "hooks"];
|
|
33
|
+
declare const ALL_FEATURES: readonly ["rules", "ignore", "mcp", "subagents", "commands", "skills", "hooks", "permissions"];
|
|
33
34
|
declare const FeatureSchema: z.ZodMiniEnum<{
|
|
34
35
|
rules: "rules";
|
|
35
36
|
ignore: "ignore";
|
|
@@ -38,6 +39,7 @@ declare const FeatureSchema: z.ZodMiniEnum<{
|
|
|
38
39
|
commands: "commands";
|
|
39
40
|
skills: "skills";
|
|
40
41
|
hooks: "hooks";
|
|
42
|
+
permissions: "permissions";
|
|
41
43
|
}>;
|
|
42
44
|
type Feature = z.infer<typeof FeatureSchema>;
|
|
43
45
|
|
|
@@ -147,6 +149,7 @@ declare const RulesyncSkillFrontmatterSchemaInternal: z.ZodMiniObject<{
|
|
|
147
149
|
cline: "cline";
|
|
148
150
|
codexcli: "codexcli";
|
|
149
151
|
copilot: "copilot";
|
|
152
|
+
copilotcli: "copilotcli";
|
|
150
153
|
cursor: "cursor";
|
|
151
154
|
factorydroid: "factorydroid";
|
|
152
155
|
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";
|
|
@@ -29,7 +30,7 @@ declare const ToolTargetSchema: z.ZodMiniEnum<{
|
|
|
29
30
|
}>;
|
|
30
31
|
type ToolTarget = z.infer<typeof ToolTargetSchema>;
|
|
31
32
|
|
|
32
|
-
declare const ALL_FEATURES: readonly ["rules", "ignore", "mcp", "subagents", "commands", "skills", "hooks"];
|
|
33
|
+
declare const ALL_FEATURES: readonly ["rules", "ignore", "mcp", "subagents", "commands", "skills", "hooks", "permissions"];
|
|
33
34
|
declare const FeatureSchema: z.ZodMiniEnum<{
|
|
34
35
|
rules: "rules";
|
|
35
36
|
ignore: "ignore";
|
|
@@ -38,6 +39,7 @@ declare const FeatureSchema: z.ZodMiniEnum<{
|
|
|
38
39
|
commands: "commands";
|
|
39
40
|
skills: "skills";
|
|
40
41
|
hooks: "hooks";
|
|
42
|
+
permissions: "permissions";
|
|
41
43
|
}>;
|
|
42
44
|
type Feature = z.infer<typeof FeatureSchema>;
|
|
43
45
|
|
|
@@ -147,6 +149,7 @@ declare const RulesyncSkillFrontmatterSchemaInternal: z.ZodMiniObject<{
|
|
|
147
149
|
cline: "cline";
|
|
148
150
|
codexcli: "codexcli";
|
|
149
151
|
copilot: "copilot";
|
|
152
|
+
copilotcli: "copilotcli";
|
|
150
153
|
cursor: "cursor";
|
|
151
154
|
factorydroid: "factorydroid";
|
|
152
155
|
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-5OPNV62F.js";
|
|
8
|
+
importFromTool
|
|
9
|
+
} from "./chunk-4WYBBN4I.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.22.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",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"@octokit/request-error": "7.1.0",
|
|
53
53
|
"@octokit/rest": "22.0.1",
|
|
54
54
|
"@toon-format/toon": "2.1.0",
|
|
55
|
-
"@valibot/to-json-schema": "1.
|
|
55
|
+
"@valibot/to-json-schema": "1.6.0",
|
|
56
56
|
"commander": "14.0.3",
|
|
57
|
-
"effect": "3.
|
|
57
|
+
"effect": "3.20.0",
|
|
58
58
|
"es-toolkit": "1.45.1",
|
|
59
59
|
"fastmcp": "3.34.0",
|
|
60
60
|
"globby": "16.1.1",
|
|
@@ -66,40 +66,42 @@
|
|
|
66
66
|
"zod": "4.3.6"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@anthropic-ai/claude-agent-sdk": "0.2.
|
|
69
|
+
"@anthropic-ai/claude-agent-sdk": "0.2.79",
|
|
70
70
|
"@eslint/js": "9.39.4",
|
|
71
|
+
"@opencode-ai/sdk": "1.2.27",
|
|
71
72
|
"@openrouter/sdk": "0.9.11",
|
|
72
73
|
"@secretlint/secretlint-rule-preset-recommend": "11.3.1",
|
|
73
74
|
"@tsconfig/node24": "24.0.4",
|
|
74
75
|
"@types/js-yaml": "4.0.9",
|
|
75
|
-
"@types/node": "25.
|
|
76
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
77
|
-
"@vitest/coverage-v8": "4.0
|
|
76
|
+
"@types/node": "25.5.0",
|
|
77
|
+
"@typescript/native-preview": "7.0.0-dev.20260318.1",
|
|
78
|
+
"@vitest/coverage-v8": "4.1.0",
|
|
78
79
|
"cspell": "9.7.0",
|
|
79
80
|
"eslint": "9.39.4",
|
|
80
81
|
"eslint-plugin-import": "2.32.0",
|
|
81
82
|
"eslint-plugin-no-type-assertion": "1.3.0",
|
|
82
|
-
"eslint-plugin-oxlint": "1.
|
|
83
|
-
"eslint-plugin-strict-dependencies": "1.3.
|
|
83
|
+
"eslint-plugin-oxlint": "1.56.0",
|
|
84
|
+
"eslint-plugin-strict-dependencies": "1.3.32",
|
|
84
85
|
"eslint-plugin-zod-import": "0.3.0",
|
|
85
|
-
"knip": "5.
|
|
86
|
-
"lint-staged": "16.
|
|
87
|
-
"oxfmt": "0.
|
|
88
|
-
"oxlint": "1.
|
|
86
|
+
"knip": "5.88.0",
|
|
87
|
+
"lint-staged": "16.4.0",
|
|
88
|
+
"oxfmt": "0.41.0",
|
|
89
|
+
"oxlint": "1.56.0",
|
|
89
90
|
"repomix": "1.12.0",
|
|
90
|
-
"resend": "6.9.
|
|
91
|
+
"resend": "6.9.4",
|
|
91
92
|
"secretlint": "11.3.1",
|
|
92
93
|
"simple-git-hooks": "2.13.1",
|
|
93
94
|
"sort-package-json": "3.6.1",
|
|
94
95
|
"tsup": "8.5.1",
|
|
95
96
|
"tsx": "4.21.0",
|
|
96
97
|
"typescript": "5.9.3",
|
|
97
|
-
"typescript-eslint": "8.57.
|
|
98
|
+
"typescript-eslint": "8.57.1",
|
|
98
99
|
"vitepress": "1.6.4",
|
|
99
|
-
"vitest": "4.0
|
|
100
|
+
"vitest": "4.1.0"
|
|
100
101
|
},
|
|
101
102
|
"engines": {
|
|
102
|
-
"node": ">=22.0.0"
|
|
103
|
+
"node": ">=22.0.0",
|
|
104
|
+
"pnpm": ">=10"
|
|
103
105
|
},
|
|
104
106
|
"publishConfig": {
|
|
105
107
|
"access": "public"
|
|
@@ -122,9 +124,11 @@
|
|
|
122
124
|
"fmt:check": "oxfmt --check .",
|
|
123
125
|
"generate": "pnpm run dev generate",
|
|
124
126
|
"generate:schema": "tsx scripts/generate-json-schema.ts",
|
|
127
|
+
"implement-loop": "tsx scripts/implement-loop.ts",
|
|
125
128
|
"knip": "knip",
|
|
126
129
|
"oxlint": "oxlint . --max-warnings 0",
|
|
127
130
|
"oxlint:fix": "oxlint . --fix --max-warnings 0",
|
|
131
|
+
"review-loop": "tsx scripts/review-loop.ts",
|
|
128
132
|
"secretlint": "secretlint --secretlintignore .gitignore \"**/*\"",
|
|
129
133
|
"sort": "sort-package-json",
|
|
130
134
|
"task": "tsx scripts/run-tasks.ts",
|