rulesync 7.26.0 → 7.27.1
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-MMC5VK27.js → chunk-CJXBVA4E.js} +1564 -969
- package/dist/cli/index.cjs +1862 -1267
- package/dist/cli/index.js +8 -8
- package/dist/index.cjs +1598 -1002
- package/dist/index.d.cts +24 -20
- package/dist/index.d.ts +24 -20
- package/dist/index.js +4 -3
- package/package.json +1 -1
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;
|
|
@@ -184,6 +174,9 @@ declare const RulesyncSkillFrontmatterSchemaInternal: z.ZodMiniObject<{
|
|
|
184
174
|
opencode: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
185
175
|
"allowed-tools": z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
186
176
|
}, z.core.$loose>>;
|
|
177
|
+
kilo: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
178
|
+
"allowed-tools": z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
179
|
+
}, z.core.$loose>>;
|
|
187
180
|
deepagents: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
188
181
|
"allowed-tools": z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
189
182
|
}, z.core.$loose>>;
|
|
@@ -208,6 +201,9 @@ type RulesyncSkillFrontmatterInput = {
|
|
|
208
201
|
opencode?: {
|
|
209
202
|
"allowed-tools"?: string[];
|
|
210
203
|
};
|
|
204
|
+
kilo?: {
|
|
205
|
+
"allowed-tools"?: string[];
|
|
206
|
+
};
|
|
211
207
|
deepagents?: {
|
|
212
208
|
"allowed-tools"?: string[];
|
|
213
209
|
};
|
|
@@ -269,28 +265,36 @@ type GenerateResult = {
|
|
|
269
265
|
hasDiff: boolean;
|
|
270
266
|
};
|
|
271
267
|
|
|
272
|
-
type
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
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 = {
|
|
276
279
|
configPath?: string;
|
|
277
280
|
verbose?: boolean;
|
|
278
281
|
silent?: boolean;
|
|
279
|
-
delete?: boolean;
|
|
280
282
|
global?: boolean;
|
|
283
|
+
};
|
|
284
|
+
type GenerateOptions = BaseOptions & {
|
|
285
|
+
targets?: ToolTarget[];
|
|
286
|
+
features?: Feature[];
|
|
287
|
+
baseDirs?: string[];
|
|
288
|
+
delete?: boolean;
|
|
281
289
|
simulateCommands?: boolean;
|
|
282
290
|
simulateSubagents?: boolean;
|
|
283
291
|
simulateSkills?: boolean;
|
|
284
292
|
dryRun?: boolean;
|
|
285
293
|
check?: boolean;
|
|
286
294
|
};
|
|
287
|
-
type ImportOptions = {
|
|
295
|
+
type ImportOptions = BaseOptions & {
|
|
288
296
|
target: ToolTarget;
|
|
289
297
|
features?: Feature[];
|
|
290
|
-
configPath?: string;
|
|
291
|
-
verbose?: boolean;
|
|
292
|
-
silent?: boolean;
|
|
293
|
-
global?: boolean;
|
|
294
298
|
};
|
|
295
299
|
declare function generate(options?: GenerateOptions): Promise<GenerateResult>;
|
|
296
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;
|
|
@@ -184,6 +174,9 @@ declare const RulesyncSkillFrontmatterSchemaInternal: z.ZodMiniObject<{
|
|
|
184
174
|
opencode: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
185
175
|
"allowed-tools": z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
186
176
|
}, z.core.$loose>>;
|
|
177
|
+
kilo: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
178
|
+
"allowed-tools": z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
179
|
+
}, z.core.$loose>>;
|
|
187
180
|
deepagents: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
188
181
|
"allowed-tools": z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
189
182
|
}, z.core.$loose>>;
|
|
@@ -208,6 +201,9 @@ type RulesyncSkillFrontmatterInput = {
|
|
|
208
201
|
opencode?: {
|
|
209
202
|
"allowed-tools"?: string[];
|
|
210
203
|
};
|
|
204
|
+
kilo?: {
|
|
205
|
+
"allowed-tools"?: string[];
|
|
206
|
+
};
|
|
211
207
|
deepagents?: {
|
|
212
208
|
"allowed-tools"?: string[];
|
|
213
209
|
};
|
|
@@ -269,28 +265,36 @@ type GenerateResult = {
|
|
|
269
265
|
hasDiff: boolean;
|
|
270
266
|
};
|
|
271
267
|
|
|
272
|
-
type
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
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 = {
|
|
276
279
|
configPath?: string;
|
|
277
280
|
verbose?: boolean;
|
|
278
281
|
silent?: boolean;
|
|
279
|
-
delete?: boolean;
|
|
280
282
|
global?: boolean;
|
|
283
|
+
};
|
|
284
|
+
type GenerateOptions = BaseOptions & {
|
|
285
|
+
targets?: ToolTarget[];
|
|
286
|
+
features?: Feature[];
|
|
287
|
+
baseDirs?: string[];
|
|
288
|
+
delete?: boolean;
|
|
281
289
|
simulateCommands?: boolean;
|
|
282
290
|
simulateSubagents?: boolean;
|
|
283
291
|
simulateSkills?: boolean;
|
|
284
292
|
dryRun?: boolean;
|
|
285
293
|
check?: boolean;
|
|
286
294
|
};
|
|
287
|
-
type ImportOptions = {
|
|
295
|
+
type ImportOptions = BaseOptions & {
|
|
288
296
|
target: ToolTarget;
|
|
289
297
|
features?: Feature[];
|
|
290
|
-
configPath?: string;
|
|
291
|
-
verbose?: boolean;
|
|
292
|
-
silent?: boolean;
|
|
293
|
-
global?: boolean;
|
|
294
298
|
};
|
|
295
299
|
declare function generate(options?: GenerateOptions): Promise<GenerateResult>;
|
|
296
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-CJXBVA4E.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
|
});
|