rulesync 7.27.0 → 7.28.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 -1
- package/dist/{chunk-AZJJUHWM.js → chunk-AKHOQKVV.js} +1031 -835
- package/dist/cli/index.cjs +1338 -1141
- package/dist/cli/index.js +13 -12
- package/dist/index.cjs +1054 -857
- package/dist/index.d.cts +18 -20
- package/dist/index.d.ts +18 -20
- package/dist/index.js +4 -3
- package/package.json +1 -3
package/dist/index.d.cts
CHANGED
|
@@ -45,16 +45,6 @@ declare const FeatureSchema: z.ZodMiniEnum<{
|
|
|
45
45
|
}>;
|
|
46
46
|
type Feature = z.infer<typeof FeatureSchema>;
|
|
47
47
|
|
|
48
|
-
type ImportResult = {
|
|
49
|
-
rulesCount: number;
|
|
50
|
-
ignoreCount: number;
|
|
51
|
-
mcpCount: number;
|
|
52
|
-
commandsCount: number;
|
|
53
|
-
subagentsCount: number;
|
|
54
|
-
skillsCount: number;
|
|
55
|
-
hooksCount: number;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
48
|
type ValidationResult = {
|
|
59
49
|
success: true;
|
|
60
50
|
error: undefined | null;
|
|
@@ -275,28 +265,36 @@ type GenerateResult = {
|
|
|
275
265
|
hasDiff: boolean;
|
|
276
266
|
};
|
|
277
267
|
|
|
278
|
-
type
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
268
|
+
type ImportResult = {
|
|
269
|
+
rulesCount: number;
|
|
270
|
+
ignoreCount: number;
|
|
271
|
+
mcpCount: number;
|
|
272
|
+
commandsCount: number;
|
|
273
|
+
subagentsCount: number;
|
|
274
|
+
skillsCount: number;
|
|
275
|
+
hooksCount: number;
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
type BaseOptions = {
|
|
282
279
|
configPath?: string;
|
|
283
280
|
verbose?: boolean;
|
|
284
281
|
silent?: boolean;
|
|
285
|
-
delete?: boolean;
|
|
286
282
|
global?: boolean;
|
|
283
|
+
};
|
|
284
|
+
type GenerateOptions = BaseOptions & {
|
|
285
|
+
targets?: ToolTarget[];
|
|
286
|
+
features?: Feature[];
|
|
287
|
+
baseDirs?: string[];
|
|
288
|
+
delete?: boolean;
|
|
287
289
|
simulateCommands?: boolean;
|
|
288
290
|
simulateSubagents?: boolean;
|
|
289
291
|
simulateSkills?: boolean;
|
|
290
292
|
dryRun?: boolean;
|
|
291
293
|
check?: boolean;
|
|
292
294
|
};
|
|
293
|
-
type ImportOptions = {
|
|
295
|
+
type ImportOptions = BaseOptions & {
|
|
294
296
|
target: ToolTarget;
|
|
295
297
|
features?: Feature[];
|
|
296
|
-
configPath?: string;
|
|
297
|
-
verbose?: boolean;
|
|
298
|
-
silent?: boolean;
|
|
299
|
-
global?: boolean;
|
|
300
298
|
};
|
|
301
299
|
declare function generate(options?: GenerateOptions): Promise<GenerateResult>;
|
|
302
300
|
declare function importFromTool(options: ImportOptions): Promise<ImportResult>;
|
package/dist/index.d.ts
CHANGED
|
@@ -45,16 +45,6 @@ declare const FeatureSchema: z.ZodMiniEnum<{
|
|
|
45
45
|
}>;
|
|
46
46
|
type Feature = z.infer<typeof FeatureSchema>;
|
|
47
47
|
|
|
48
|
-
type ImportResult = {
|
|
49
|
-
rulesCount: number;
|
|
50
|
-
ignoreCount: number;
|
|
51
|
-
mcpCount: number;
|
|
52
|
-
commandsCount: number;
|
|
53
|
-
subagentsCount: number;
|
|
54
|
-
skillsCount: number;
|
|
55
|
-
hooksCount: number;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
48
|
type ValidationResult = {
|
|
59
49
|
success: true;
|
|
60
50
|
error: undefined | null;
|
|
@@ -275,28 +265,36 @@ type GenerateResult = {
|
|
|
275
265
|
hasDiff: boolean;
|
|
276
266
|
};
|
|
277
267
|
|
|
278
|
-
type
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
268
|
+
type ImportResult = {
|
|
269
|
+
rulesCount: number;
|
|
270
|
+
ignoreCount: number;
|
|
271
|
+
mcpCount: number;
|
|
272
|
+
commandsCount: number;
|
|
273
|
+
subagentsCount: number;
|
|
274
|
+
skillsCount: number;
|
|
275
|
+
hooksCount: number;
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
type BaseOptions = {
|
|
282
279
|
configPath?: string;
|
|
283
280
|
verbose?: boolean;
|
|
284
281
|
silent?: boolean;
|
|
285
|
-
delete?: boolean;
|
|
286
282
|
global?: boolean;
|
|
283
|
+
};
|
|
284
|
+
type GenerateOptions = BaseOptions & {
|
|
285
|
+
targets?: ToolTarget[];
|
|
286
|
+
features?: Feature[];
|
|
287
|
+
baseDirs?: string[];
|
|
288
|
+
delete?: boolean;
|
|
287
289
|
simulateCommands?: boolean;
|
|
288
290
|
simulateSubagents?: boolean;
|
|
289
291
|
simulateSkills?: boolean;
|
|
290
292
|
dryRun?: boolean;
|
|
291
293
|
check?: boolean;
|
|
292
294
|
};
|
|
293
|
-
type ImportOptions = {
|
|
295
|
+
type ImportOptions = BaseOptions & {
|
|
294
296
|
target: ToolTarget;
|
|
295
297
|
features?: Feature[];
|
|
296
|
-
configPath?: string;
|
|
297
|
-
verbose?: boolean;
|
|
298
|
-
silent?: boolean;
|
|
299
|
-
global?: boolean;
|
|
300
298
|
};
|
|
301
299
|
declare function generate(options?: GenerateOptions): Promise<GenerateResult>;
|
|
302
300
|
declare function importFromTool(options: ImportOptions): Promise<ImportResult>;
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
checkRulesyncDirExists,
|
|
7
7
|
generate,
|
|
8
8
|
importFromTool
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AKHOQKVV.js";
|
|
10
10
|
|
|
11
11
|
// src/index.ts
|
|
12
12
|
async function generate2(options = {}) {
|
|
@@ -19,17 +19,18 @@ async function generate2(options = {}) {
|
|
|
19
19
|
});
|
|
20
20
|
for (const baseDir of config.getBaseDirs()) {
|
|
21
21
|
if (!await checkRulesyncDirExists({ baseDir })) {
|
|
22
|
-
throw new Error(
|
|
22
|
+
throw new Error(`.rulesync directory not found in '${baseDir}'. Run 'rulesync init' first.`);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
return generate({ config, logger });
|
|
26
26
|
}
|
|
27
27
|
async function importFromTool2(options) {
|
|
28
|
-
const { target, silent = true, verbose = false, ...rest } = options;
|
|
28
|
+
const { target, features, silent = true, verbose = false, ...rest } = options;
|
|
29
29
|
const logger = new ConsoleLogger({ verbose, silent });
|
|
30
30
|
const config = await ConfigResolver.resolve({
|
|
31
31
|
...rest,
|
|
32
32
|
targets: [target],
|
|
33
|
+
features,
|
|
33
34
|
verbose,
|
|
34
35
|
silent
|
|
35
36
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rulesync",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.28.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",
|
|
@@ -124,11 +124,9 @@
|
|
|
124
124
|
"fmt:check": "oxfmt --check .",
|
|
125
125
|
"generate": "pnpm run dev generate",
|
|
126
126
|
"generate:schema": "tsx scripts/generate-json-schema.ts",
|
|
127
|
-
"implement-loop": "tsx scripts/implement-loop.ts",
|
|
128
127
|
"knip": "knip",
|
|
129
128
|
"oxlint": "oxlint . --max-warnings 0",
|
|
130
129
|
"oxlint:fix": "oxlint . --fix --max-warnings 0",
|
|
131
|
-
"review-loop": "tsx scripts/review-loop.ts",
|
|
132
130
|
"secretlint": "secretlint --secretlintignore .gitignore \"**/*\"",
|
|
133
131
|
"sort": "sort-package-json",
|
|
134
132
|
"task": "tsx scripts/run-tasks.ts",
|