rulesync 9.5.0 → 9.6.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/cli/index.cjs +58 -25
- package/dist/cli/index.js +59 -26
- package/dist/cli/index.js.map +1 -1
- package/dist/{import-DngV1i49.cjs → import-DW-a1SJq.cjs} +976 -268
- package/dist/{import-BdJG1fyb.js → import-tTMN0WRi.js} +962 -260
- package/dist/import-tTMN0WRi.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +16 -38
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +16 -38
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +18 -19
- package/dist/import-BdJG1fyb.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_import = require("./import-
|
|
2
|
+
const require_import = require("./import-DW-a1SJq.cjs");
|
|
3
3
|
//#region src/index.ts
|
|
4
4
|
async function generate(options = {}) {
|
|
5
5
|
const { silent = true, verbose = false, ...rest } = options;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { z } from "zod/mini";
|
|
2
|
-
|
|
3
2
|
//#region src/types/features.d.ts
|
|
4
3
|
declare const ALL_FEATURES: readonly ["rules", "ignore", "mcp", "subagents", "commands", "skills", "hooks", "permissions"];
|
|
5
4
|
declare const FeatureSchema: z.ZodMiniEnum<{
|
|
6
|
-
rules: "rules";
|
|
7
|
-
ignore: "ignore";
|
|
8
|
-
mcp: "mcp";
|
|
9
|
-
subagents: "subagents";
|
|
10
5
|
commands: "commands";
|
|
11
|
-
skills: "skills";
|
|
12
6
|
hooks: "hooks";
|
|
7
|
+
ignore: "ignore";
|
|
8
|
+
mcp: "mcp";
|
|
13
9
|
permissions: "permissions";
|
|
10
|
+
rules: "rules";
|
|
11
|
+
skills: "skills";
|
|
12
|
+
subagents: "subagents";
|
|
14
13
|
}>;
|
|
15
14
|
type Feature = z.infer<typeof FeatureSchema>;
|
|
16
15
|
//#endregion
|
|
17
16
|
//#region src/types/tool-target-tuples.d.ts
|
|
18
|
-
declare const ALL_TOOL_TARGET_TUPLES: readonly [readonly ["agentsmd", "aiassistant", "amp", "antigravity-cli", "antigravity-ide", "augmentcode", "augmentcode-legacy", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "replit", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zed"], readonly ["aiassistant", "antigravity-cli", "augmentcode", "claudecode", "claudecode-legacy", "cline", "cursor", "goose", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "qwencode", "roo", "devin", "vibe", "warp", "zed"], readonly ["amp", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "kilo", "kiro", "kiro-cli", "kiro-ide", "junie", "opencode", "qwencode", "reasonix", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zed"], readonly ["agentsmd", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "cursor", "factorydroid", "goose", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "reasonix", "roo", "rovodev", "takt", "devin"], readonly ["kilo", "agentsmd", "augmentcode", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "devin", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kiro", "kiro-cli", "kiro-ide", "opencode", "qwencode", "roo", "rovodev", "takt", "vibe"], readonly ["agentsmd", "agentsskills", "aiassistant", "amp", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "replit", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zed"], readonly ["antigravity-cli", "antigravity-ide", "kilo", "cursor", "claudecode", "codexcli", "copilot", "copilotcli", "opencode", "factorydroid", "goose", "hermesagent", "deepagents", "kiro", "kiro-cli", "kiro-ide", "devin", "augmentcode", "junie", "vibe", "qwencode", "reasonix"], readonly ["amp", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "cline", "codexcli", "cursor", "devin", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "qwencode", "reasonix", "rovodev", "takt", "vibe", "warp", "zed"]];
|
|
17
|
+
declare const ALL_TOOL_TARGET_TUPLES: readonly [readonly ["agentsmd", "aiassistant", "amp", "antigravity-cli", "antigravity-ide", "augmentcode", "augmentcode-legacy", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "reasonix", "replit", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zed"], readonly ["aiassistant", "antigravity-cli", "augmentcode", "claudecode", "claudecode-legacy", "cline", "cursor", "goose", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "qwencode", "roo", "devin", "vibe", "warp", "zed"], readonly ["amp", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "kilo", "kiro", "kiro-cli", "kiro-ide", "junie", "opencode", "qwencode", "reasonix", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zed"], readonly ["agentsmd", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "cursor", "factorydroid", "goose", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "reasonix", "roo", "rovodev", "takt", "devin"], readonly ["kilo", "agentsmd", "augmentcode", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "devin", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kiro", "kiro-cli", "kiro-ide", "opencode", "qwencode", "roo", "rovodev", "takt", "vibe"], readonly ["agentsmd", "agentsskills", "aiassistant", "amp", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "reasonix", "replit", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zed"], readonly ["antigravity-cli", "antigravity-ide", "kilo", "cursor", "claudecode", "codexcli", "copilot", "copilotcli", "opencode", "factorydroid", "goose", "hermesagent", "deepagents", "kiro", "kiro-cli", "kiro-ide", "devin", "augmentcode", "junie", "vibe", "qwencode", "reasonix"], readonly ["amp", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "cline", "codexcli", "cursor", "devin", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "qwencode", "reasonix", "rovodev", "takt", "vibe", "warp", "zed"]];
|
|
19
18
|
//#endregion
|
|
20
19
|
//#region src/types/tool-targets.d.ts
|
|
21
20
|
type AllToolTarget = (typeof ALL_TOOL_TARGET_TUPLES)[number][number];
|
|
22
21
|
declare const ALL_TOOL_TARGETS: readonly [AllToolTarget, ...AllToolTarget[]];
|
|
23
22
|
declare const ToolTargetSchema: z.ZodMiniEnum<{
|
|
24
23
|
agentsmd: "agentsmd";
|
|
24
|
+
agentsskills: "agentsskills";
|
|
25
25
|
aiassistant: "aiassistant";
|
|
26
26
|
amp: "amp";
|
|
27
27
|
"antigravity-cli": "antigravity-cli";
|
|
@@ -36,6 +36,7 @@ declare const ToolTargetSchema: z.ZodMiniEnum<{
|
|
|
36
36
|
copilotcli: "copilotcli";
|
|
37
37
|
cursor: "cursor";
|
|
38
38
|
deepagents: "deepagents";
|
|
39
|
+
devin: "devin";
|
|
39
40
|
factorydroid: "factorydroid";
|
|
40
41
|
goose: "goose";
|
|
41
42
|
grokcli: "grokcli";
|
|
@@ -48,16 +49,14 @@ declare const ToolTargetSchema: z.ZodMiniEnum<{
|
|
|
48
49
|
opencode: "opencode";
|
|
49
50
|
pi: "pi";
|
|
50
51
|
qwencode: "qwencode";
|
|
52
|
+
reasonix: "reasonix";
|
|
51
53
|
replit: "replit";
|
|
52
54
|
roo: "roo";
|
|
53
55
|
rovodev: "rovodev";
|
|
54
56
|
takt: "takt";
|
|
55
57
|
vibe: "vibe";
|
|
56
58
|
warp: "warp";
|
|
57
|
-
devin: "devin";
|
|
58
59
|
zed: "zed";
|
|
59
|
-
reasonix: "reasonix";
|
|
60
|
-
agentsskills: "agentsskills";
|
|
61
60
|
}>;
|
|
62
61
|
type ToolTarget = z.infer<typeof ToolTargetSchema>;
|
|
63
62
|
//#endregion
|
|
@@ -127,14 +126,7 @@ declare abstract class AiDir {
|
|
|
127
126
|
* @example false
|
|
128
127
|
*/
|
|
129
128
|
protected readonly global: boolean;
|
|
130
|
-
constructor({
|
|
131
|
-
outputRoot,
|
|
132
|
-
relativeDirPath,
|
|
133
|
-
dirName,
|
|
134
|
-
mainFile,
|
|
135
|
-
otherFiles,
|
|
136
|
-
global
|
|
137
|
-
}: AiDirParams);
|
|
129
|
+
constructor({ outputRoot, relativeDirPath, dirName, mainFile, otherFiles, global }: AiDirParams);
|
|
138
130
|
static fromDir(_params: AiDirFromDirParams): Promise<AiDir>;
|
|
139
131
|
getOutputRoot(): string;
|
|
140
132
|
getRelativeDirPath(): string;
|
|
@@ -171,7 +163,9 @@ declare const RulesyncSkillFrontmatterSchemaInternal: z.ZodMiniObject<{
|
|
|
171
163
|
name: z.ZodMiniString<string>;
|
|
172
164
|
description: z.ZodMiniString<string>;
|
|
173
165
|
targets: z.ZodMiniDefault<z.ZodMiniArray<z.ZodMiniEnum<{
|
|
166
|
+
"*": "*";
|
|
174
167
|
agentsmd: "agentsmd";
|
|
168
|
+
agentsskills: "agentsskills";
|
|
175
169
|
aiassistant: "aiassistant";
|
|
176
170
|
amp: "amp";
|
|
177
171
|
"antigravity-cli": "antigravity-cli";
|
|
@@ -186,6 +180,7 @@ declare const RulesyncSkillFrontmatterSchemaInternal: z.ZodMiniObject<{
|
|
|
186
180
|
copilotcli: "copilotcli";
|
|
187
181
|
cursor: "cursor";
|
|
188
182
|
deepagents: "deepagents";
|
|
183
|
+
devin: "devin";
|
|
189
184
|
factorydroid: "factorydroid";
|
|
190
185
|
goose: "goose";
|
|
191
186
|
grokcli: "grokcli";
|
|
@@ -198,17 +193,14 @@ declare const RulesyncSkillFrontmatterSchemaInternal: z.ZodMiniObject<{
|
|
|
198
193
|
opencode: "opencode";
|
|
199
194
|
pi: "pi";
|
|
200
195
|
qwencode: "qwencode";
|
|
196
|
+
reasonix: "reasonix";
|
|
201
197
|
replit: "replit";
|
|
202
198
|
roo: "roo";
|
|
203
199
|
rovodev: "rovodev";
|
|
204
200
|
takt: "takt";
|
|
205
201
|
vibe: "vibe";
|
|
206
202
|
warp: "warp";
|
|
207
|
-
devin: "devin";
|
|
208
203
|
zed: "zed";
|
|
209
|
-
reasonix: "reasonix";
|
|
210
|
-
agentsskills: "agentsskills";
|
|
211
|
-
"*": "*";
|
|
212
204
|
}>>>;
|
|
213
205
|
"disable-model-invocation": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
214
206
|
"user-invocable": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -476,26 +468,12 @@ type RulesyncSkillFromDirParams = {
|
|
|
476
468
|
* Extends AiDir to inherit directory management and security features.
|
|
477
469
|
*/
|
|
478
470
|
declare class RulesyncSkill extends AiDir {
|
|
479
|
-
constructor({
|
|
480
|
-
outputRoot,
|
|
481
|
-
relativeDirPath,
|
|
482
|
-
dirName,
|
|
483
|
-
frontmatter,
|
|
484
|
-
body,
|
|
485
|
-
otherFiles,
|
|
486
|
-
validate,
|
|
487
|
-
global
|
|
488
|
-
}: RulesyncSkillParams);
|
|
471
|
+
constructor({ outputRoot, relativeDirPath, dirName, frontmatter, body, otherFiles, validate, global }: RulesyncSkillParams);
|
|
489
472
|
static getSettablePaths(): RulesyncSkillSettablePaths;
|
|
490
473
|
getFrontmatter(): RulesyncSkillFrontmatter;
|
|
491
474
|
getBody(): string;
|
|
492
475
|
validate(): ValidationResult;
|
|
493
|
-
static fromDir({
|
|
494
|
-
outputRoot,
|
|
495
|
-
relativeDirPath,
|
|
496
|
-
dirName,
|
|
497
|
-
global
|
|
498
|
-
}: RulesyncSkillFromDirParams): Promise<RulesyncSkill>;
|
|
476
|
+
static fromDir({ outputRoot, relativeDirPath, dirName, global }: RulesyncSkillFromDirParams): Promise<RulesyncSkill>;
|
|
499
477
|
}
|
|
500
478
|
//#endregion
|
|
501
479
|
//#region src/lib/generate.d.ts
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/types/features.ts","../src/types/tool-target-tuples.ts","../src/types/tool-targets.ts","../src/lib/convert.ts","../src/types/ai-dir.ts","../src/features/skills/rulesync-skill.ts","../src/lib/generate.ts","../src/lib/import.ts","../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/types/features.ts","../src/types/tool-target-tuples.ts","../src/types/tool-targets.ts","../src/lib/convert.ts","../src/types/ai-dir.ts","../src/features/skills/rulesync-skill.ts","../src/lib/generate.ts","../src/lib/import.ts","../src/index.ts"],"mappings":";;cAEa;cAaP,eAAa,EAAA;;;;;;;;;;KAEP,UAAU,EAAE,aAAa;;;cCyOxB;;;KChPR,wBAAwB;cAEhB,4BAA4B,kBAAkB;cAM9C,kBAAgB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEjB,aAAa,EAAE,aAAa;;;KCP5B;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;KCjBU;EAEN;EACA;;EAGA;EACA,OAAO;;KAGD;EACV;EACA,YAAY;;KAGF;EACV;EACA;EACA;EACA;IACE;IACA;IACA,cAAc;;EAEhB,aAAa;EACb;;KAGU,qBAAqB,KAC/B;uBAIoB;;;;qBAID;;;;qBAKA;;;;qBAKA;;;;YAKT;IACR;IACA;IACA,cAAc;;;;;YAMN,YAAY;;;;qBAKH;EAEnB,cACE,YACA,iBACA,SACA,UACA,YACA,UACC;SAcU,QAAQ,SAAS,qBAAqB,QAAQ;EAI3D;EAIA;EAIA;EAIA;EAqBA;IAEM;IACA;IACA,cAAc;;EAMpB,iBAAiB;;;;EAOjB;EAIA;EAIA,YAAY,cAAc,cAAc,cAAc;;;;;;;;;;;mBAc/B,kBACrB,oBACA,yBACA,iBACA,0BACC,QAAQ;WAmBF,YAAY;;;;cCrLjB,wCAAsC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8LhC;EACV;EACA;EACA;EACA;EACA;EACA;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA,QAAQ;IACR;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;MACE;MACA;MACA;MACA;MACA;MACA;;IAEF;MACE;;IAEF;MACE,QAAQ;QACN;QACA;QACA;QACA;QACA;;;;EAIN;IACE;IACA;IACA,yBAAyB;IACzB,WAAW;;EAEb;IACE;;EAEF;IACE;IACA;IACA,yBAAyB;IACzB,WAAW;;EAEb;IACE;IACA;;EAEF;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA,gBAAgB;IAChB,WAAW;;EAEb;IACE;;EAEF;IACE;IACA;IACA,gBAAgB;IAChB,WAAW;;EAEb,MAAM;EACN,QAAQ;EACR;IACE;IACA;IACA,yBAAyB;IACzB,WAAW;;EAEb;IACE;IACA;IACA,WAAW;;EAEb;IACE;IACA;;EAEF;IACE;IACA,yBAAyB;IACzB,WAAW;IACX;;EAEF;IACE;IACA,yBAAyB;IACzB,WAAW;IACX;IACA;;EAEF;IACE;IACA;;;KAKQ,2BAA2B,EAAE,aAAa;KAO1C;EACV;EACA;EACA;EACA,aAAa;EACb;EACA,aAAa;EACb;EACA;;KAGU;EACV;;KAGU;EACV;EACA;EACA;EACA;;;;;;cAOW,sBAAsB;EACjC,cACE,YACA,iBACA,SACA,aACA,MACA,YACA,UACA,UACC;SAsBI,oBAAoB;EAU3B,kBAAkB;EAQlB;EAIA,YAAY;SAcC,UACX,YACA,iBACA,SACA,UACC,6BAA6B,QAAQ;;;;KClZ9B;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR;;;;KCnCU;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;KCAG;EACH;EACA;EACA;EACA;;KAGU,kBAAkB;EAC5B,UAAU;EACV,WAAW;EACX;;;;;;;EAOA;EACA;EACA;EACA;EACA;EACA;EACA;;KAGU,gBAAgB;EAC1B,QAAQ;EACR,WAAW;;KAGD,iBAAiB;EAC3B,MAAM;EACN,IAAI;EACJ,WAAW;EACX;;iBAGoB,SAAS,UAAS,kBAAuB,QAAQ;iBAqBjD,eAAe,SAAS,gBAAgB,QAAQ;iBAehD,gBAAgB,SAAS,iBAAiB,QAAQ"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { z } from "zod/mini";
|
|
2
|
-
|
|
3
2
|
//#region src/types/features.d.ts
|
|
4
3
|
declare const ALL_FEATURES: readonly ["rules", "ignore", "mcp", "subagents", "commands", "skills", "hooks", "permissions"];
|
|
5
4
|
declare const FeatureSchema: z.ZodMiniEnum<{
|
|
6
|
-
rules: "rules";
|
|
7
|
-
ignore: "ignore";
|
|
8
|
-
mcp: "mcp";
|
|
9
|
-
subagents: "subagents";
|
|
10
5
|
commands: "commands";
|
|
11
|
-
skills: "skills";
|
|
12
6
|
hooks: "hooks";
|
|
7
|
+
ignore: "ignore";
|
|
8
|
+
mcp: "mcp";
|
|
13
9
|
permissions: "permissions";
|
|
10
|
+
rules: "rules";
|
|
11
|
+
skills: "skills";
|
|
12
|
+
subagents: "subagents";
|
|
14
13
|
}>;
|
|
15
14
|
type Feature = z.infer<typeof FeatureSchema>;
|
|
16
15
|
//#endregion
|
|
17
16
|
//#region src/types/tool-target-tuples.d.ts
|
|
18
|
-
declare const ALL_TOOL_TARGET_TUPLES: readonly [readonly ["agentsmd", "aiassistant", "amp", "antigravity-cli", "antigravity-ide", "augmentcode", "augmentcode-legacy", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "replit", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zed"], readonly ["aiassistant", "antigravity-cli", "augmentcode", "claudecode", "claudecode-legacy", "cline", "cursor", "goose", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "qwencode", "roo", "devin", "vibe", "warp", "zed"], readonly ["amp", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "kilo", "kiro", "kiro-cli", "kiro-ide", "junie", "opencode", "qwencode", "reasonix", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zed"], readonly ["agentsmd", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "cursor", "factorydroid", "goose", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "reasonix", "roo", "rovodev", "takt", "devin"], readonly ["kilo", "agentsmd", "augmentcode", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "devin", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kiro", "kiro-cli", "kiro-ide", "opencode", "qwencode", "roo", "rovodev", "takt", "vibe"], readonly ["agentsmd", "agentsskills", "aiassistant", "amp", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "replit", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zed"], readonly ["antigravity-cli", "antigravity-ide", "kilo", "cursor", "claudecode", "codexcli", "copilot", "copilotcli", "opencode", "factorydroid", "goose", "hermesagent", "deepagents", "kiro", "kiro-cli", "kiro-ide", "devin", "augmentcode", "junie", "vibe", "qwencode", "reasonix"], readonly ["amp", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "cline", "codexcli", "cursor", "devin", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "qwencode", "reasonix", "rovodev", "takt", "vibe", "warp", "zed"]];
|
|
17
|
+
declare const ALL_TOOL_TARGET_TUPLES: readonly [readonly ["agentsmd", "aiassistant", "amp", "antigravity-cli", "antigravity-ide", "augmentcode", "augmentcode-legacy", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "reasonix", "replit", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zed"], readonly ["aiassistant", "antigravity-cli", "augmentcode", "claudecode", "claudecode-legacy", "cline", "cursor", "goose", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "qwencode", "roo", "devin", "vibe", "warp", "zed"], readonly ["amp", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "kilo", "kiro", "kiro-cli", "kiro-ide", "junie", "opencode", "qwencode", "reasonix", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zed"], readonly ["agentsmd", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "cursor", "factorydroid", "goose", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "reasonix", "roo", "rovodev", "takt", "devin"], readonly ["kilo", "agentsmd", "augmentcode", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "devin", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kiro", "kiro-cli", "kiro-ide", "opencode", "qwencode", "roo", "rovodev", "takt", "vibe"], readonly ["agentsmd", "agentsskills", "aiassistant", "amp", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "reasonix", "replit", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zed"], readonly ["antigravity-cli", "antigravity-ide", "kilo", "cursor", "claudecode", "codexcli", "copilot", "copilotcli", "opencode", "factorydroid", "goose", "hermesagent", "deepagents", "kiro", "kiro-cli", "kiro-ide", "devin", "augmentcode", "junie", "vibe", "qwencode", "reasonix"], readonly ["amp", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "cline", "codexcli", "cursor", "devin", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "qwencode", "reasonix", "rovodev", "takt", "vibe", "warp", "zed"]];
|
|
19
18
|
//#endregion
|
|
20
19
|
//#region src/types/tool-targets.d.ts
|
|
21
20
|
type AllToolTarget = (typeof ALL_TOOL_TARGET_TUPLES)[number][number];
|
|
22
21
|
declare const ALL_TOOL_TARGETS: readonly [AllToolTarget, ...AllToolTarget[]];
|
|
23
22
|
declare const ToolTargetSchema: z.ZodMiniEnum<{
|
|
24
23
|
agentsmd: "agentsmd";
|
|
24
|
+
agentsskills: "agentsskills";
|
|
25
25
|
aiassistant: "aiassistant";
|
|
26
26
|
amp: "amp";
|
|
27
27
|
"antigravity-cli": "antigravity-cli";
|
|
@@ -36,6 +36,7 @@ declare const ToolTargetSchema: z.ZodMiniEnum<{
|
|
|
36
36
|
copilotcli: "copilotcli";
|
|
37
37
|
cursor: "cursor";
|
|
38
38
|
deepagents: "deepagents";
|
|
39
|
+
devin: "devin";
|
|
39
40
|
factorydroid: "factorydroid";
|
|
40
41
|
goose: "goose";
|
|
41
42
|
grokcli: "grokcli";
|
|
@@ -48,16 +49,14 @@ declare const ToolTargetSchema: z.ZodMiniEnum<{
|
|
|
48
49
|
opencode: "opencode";
|
|
49
50
|
pi: "pi";
|
|
50
51
|
qwencode: "qwencode";
|
|
52
|
+
reasonix: "reasonix";
|
|
51
53
|
replit: "replit";
|
|
52
54
|
roo: "roo";
|
|
53
55
|
rovodev: "rovodev";
|
|
54
56
|
takt: "takt";
|
|
55
57
|
vibe: "vibe";
|
|
56
58
|
warp: "warp";
|
|
57
|
-
devin: "devin";
|
|
58
59
|
zed: "zed";
|
|
59
|
-
reasonix: "reasonix";
|
|
60
|
-
agentsskills: "agentsskills";
|
|
61
60
|
}>;
|
|
62
61
|
type ToolTarget = z.infer<typeof ToolTargetSchema>;
|
|
63
62
|
//#endregion
|
|
@@ -127,14 +126,7 @@ declare abstract class AiDir {
|
|
|
127
126
|
* @example false
|
|
128
127
|
*/
|
|
129
128
|
protected readonly global: boolean;
|
|
130
|
-
constructor({
|
|
131
|
-
outputRoot,
|
|
132
|
-
relativeDirPath,
|
|
133
|
-
dirName,
|
|
134
|
-
mainFile,
|
|
135
|
-
otherFiles,
|
|
136
|
-
global
|
|
137
|
-
}: AiDirParams);
|
|
129
|
+
constructor({ outputRoot, relativeDirPath, dirName, mainFile, otherFiles, global }: AiDirParams);
|
|
138
130
|
static fromDir(_params: AiDirFromDirParams): Promise<AiDir>;
|
|
139
131
|
getOutputRoot(): string;
|
|
140
132
|
getRelativeDirPath(): string;
|
|
@@ -171,7 +163,9 @@ declare const RulesyncSkillFrontmatterSchemaInternal: z.ZodMiniObject<{
|
|
|
171
163
|
name: z.ZodMiniString<string>;
|
|
172
164
|
description: z.ZodMiniString<string>;
|
|
173
165
|
targets: z.ZodMiniDefault<z.ZodMiniArray<z.ZodMiniEnum<{
|
|
166
|
+
"*": "*";
|
|
174
167
|
agentsmd: "agentsmd";
|
|
168
|
+
agentsskills: "agentsskills";
|
|
175
169
|
aiassistant: "aiassistant";
|
|
176
170
|
amp: "amp";
|
|
177
171
|
"antigravity-cli": "antigravity-cli";
|
|
@@ -186,6 +180,7 @@ declare const RulesyncSkillFrontmatterSchemaInternal: z.ZodMiniObject<{
|
|
|
186
180
|
copilotcli: "copilotcli";
|
|
187
181
|
cursor: "cursor";
|
|
188
182
|
deepagents: "deepagents";
|
|
183
|
+
devin: "devin";
|
|
189
184
|
factorydroid: "factorydroid";
|
|
190
185
|
goose: "goose";
|
|
191
186
|
grokcli: "grokcli";
|
|
@@ -198,17 +193,14 @@ declare const RulesyncSkillFrontmatterSchemaInternal: z.ZodMiniObject<{
|
|
|
198
193
|
opencode: "opencode";
|
|
199
194
|
pi: "pi";
|
|
200
195
|
qwencode: "qwencode";
|
|
196
|
+
reasonix: "reasonix";
|
|
201
197
|
replit: "replit";
|
|
202
198
|
roo: "roo";
|
|
203
199
|
rovodev: "rovodev";
|
|
204
200
|
takt: "takt";
|
|
205
201
|
vibe: "vibe";
|
|
206
202
|
warp: "warp";
|
|
207
|
-
devin: "devin";
|
|
208
203
|
zed: "zed";
|
|
209
|
-
reasonix: "reasonix";
|
|
210
|
-
agentsskills: "agentsskills";
|
|
211
|
-
"*": "*";
|
|
212
204
|
}>>>;
|
|
213
205
|
"disable-model-invocation": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
214
206
|
"user-invocable": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
@@ -476,26 +468,12 @@ type RulesyncSkillFromDirParams = {
|
|
|
476
468
|
* Extends AiDir to inherit directory management and security features.
|
|
477
469
|
*/
|
|
478
470
|
declare class RulesyncSkill extends AiDir {
|
|
479
|
-
constructor({
|
|
480
|
-
outputRoot,
|
|
481
|
-
relativeDirPath,
|
|
482
|
-
dirName,
|
|
483
|
-
frontmatter,
|
|
484
|
-
body,
|
|
485
|
-
otherFiles,
|
|
486
|
-
validate,
|
|
487
|
-
global
|
|
488
|
-
}: RulesyncSkillParams);
|
|
471
|
+
constructor({ outputRoot, relativeDirPath, dirName, frontmatter, body, otherFiles, validate, global }: RulesyncSkillParams);
|
|
489
472
|
static getSettablePaths(): RulesyncSkillSettablePaths;
|
|
490
473
|
getFrontmatter(): RulesyncSkillFrontmatter;
|
|
491
474
|
getBody(): string;
|
|
492
475
|
validate(): ValidationResult;
|
|
493
|
-
static fromDir({
|
|
494
|
-
outputRoot,
|
|
495
|
-
relativeDirPath,
|
|
496
|
-
dirName,
|
|
497
|
-
global
|
|
498
|
-
}: RulesyncSkillFromDirParams): Promise<RulesyncSkill>;
|
|
476
|
+
static fromDir({ outputRoot, relativeDirPath, dirName, global }: RulesyncSkillFromDirParams): Promise<RulesyncSkill>;
|
|
499
477
|
}
|
|
500
478
|
//#endregion
|
|
501
479
|
//#region src/lib/generate.d.ts
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types/features.ts","../src/types/tool-target-tuples.ts","../src/types/tool-targets.ts","../src/lib/convert.ts","../src/types/ai-dir.ts","../src/features/skills/rulesync-skill.ts","../src/lib/generate.ts","../src/lib/import.ts","../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types/features.ts","../src/types/tool-target-tuples.ts","../src/types/tool-targets.ts","../src/lib/convert.ts","../src/types/ai-dir.ts","../src/features/skills/rulesync-skill.ts","../src/lib/generate.ts","../src/lib/import.ts","../src/index.ts"],"mappings":";;cAEa;cAaP,eAAa,EAAA;;;;;;;;;;KAEP,UAAU,EAAE,aAAa;;;cCyOxB;;;KChPR,wBAAwB;cAEhB,4BAA4B,kBAAkB;cAM9C,kBAAgB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEjB,aAAa,EAAE,aAAa;;;KCP5B;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;KCjBU;EAEN;EACA;;EAGA;EACA,OAAO;;KAGD;EACV;EACA,YAAY;;KAGF;EACV;EACA;EACA;EACA;IACE;IACA;IACA,cAAc;;EAEhB,aAAa;EACb;;KAGU,qBAAqB,KAC/B;uBAIoB;;;;qBAID;;;;qBAKA;;;;qBAKA;;;;YAKT;IACR;IACA;IACA,cAAc;;;;;YAMN,YAAY;;;;qBAKH;EAEnB,cACE,YACA,iBACA,SACA,UACA,YACA,UACC;SAcU,QAAQ,SAAS,qBAAqB,QAAQ;EAI3D;EAIA;EAIA;EAIA;EAqBA;IAEM;IACA;IACA,cAAc;;EAMpB,iBAAiB;;;;EAOjB;EAIA;EAIA,YAAY,cAAc,cAAc,cAAc;;;;;;;;;;;mBAc/B,kBACrB,oBACA,yBACA,iBACA,0BACC,QAAQ;WAmBF,YAAY;;;;cCrLjB,wCAAsC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8LhC;EACV;EACA;EACA;EACA;EACA;EACA;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA,QAAQ;IACR;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;MACE;MACA;MACA;MACA;MACA;MACA;;IAEF;MACE;;IAEF;MACE,QAAQ;QACN;QACA;QACA;QACA;QACA;;;;EAIN;IACE;IACA;IACA,yBAAyB;IACzB,WAAW;;EAEb;IACE;;EAEF;IACE;IACA;IACA,yBAAyB;IACzB,WAAW;;EAEb;IACE;IACA;;EAEF;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA,gBAAgB;IAChB,WAAW;;EAEb;IACE;;EAEF;IACE;IACA;IACA,gBAAgB;IAChB,WAAW;;EAEb,MAAM;EACN,QAAQ;EACR;IACE;IACA;IACA,yBAAyB;IACzB,WAAW;;EAEb;IACE;IACA;IACA,WAAW;;EAEb;IACE;IACA;;EAEF;IACE;IACA,yBAAyB;IACzB,WAAW;IACX;;EAEF;IACE;IACA,yBAAyB;IACzB,WAAW;IACX;IACA;;EAEF;IACE;IACA;;;KAKQ,2BAA2B,EAAE,aAAa;KAO1C;EACV;EACA;EACA;EACA,aAAa;EACb;EACA,aAAa;EACb;EACA;;KAGU;EACV;;KAGU;EACV;EACA;EACA;EACA;;;;;;cAOW,sBAAsB;EACjC,cACE,YACA,iBACA,SACA,aACA,MACA,YACA,UACA,UACC;SAsBI,oBAAoB;EAU3B,kBAAkB;EAQlB;EAIA,YAAY;SAcC,UACX,YACA,iBACA,SACA,UACC,6BAA6B,QAAQ;;;;KClZ9B;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR;;;;KCnCU;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;KCAG;EACH;EACA;EACA;EACA;;KAGU,kBAAkB;EAC5B,UAAU;EACV,WAAW;EACX;;;;;;;EAOA;EACA;EACA;EACA;EACA;EACA;EACA;;KAGU,gBAAgB;EAC1B,QAAQ;EACR,WAAW;;KAGD,iBAAiB;EAC3B,MAAM;EACN,IAAI;EACJ,WAAW;EACX;;iBAGoB,SAAS,UAAS,kBAAuB,QAAQ;iBAqBjD,eAAe,SAAS,gBAAgB,QAAQ;iBAehD,gBAAgB,SAAS,iBAAiB,QAAQ"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as ConsoleLogger, Ot as ALL_FEATURES, P as ConfigResolver, a as convertFromTool$1, n as checkRulesyncDirExists, nt as ALL_TOOL_TARGETS, r as generate$1, t as importFromTool$1 } from "./import-tTMN0WRi.js";
|
|
2
2
|
//#region src/index.ts
|
|
3
3
|
async function generate(options = {}) {
|
|
4
4
|
const { silent = true, verbose = false, ...rest } = options;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rulesync",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.6.1",
|
|
4
4
|
"description": "Unified AI rules management CLI tool that generates configuration files for various AI development tools",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -56,41 +56,40 @@
|
|
|
56
56
|
"commander": "15.0.0",
|
|
57
57
|
"effect": "3.21.4",
|
|
58
58
|
"es-toolkit": "1.49.0",
|
|
59
|
-
"fastmcp": "4.
|
|
60
|
-
"globby": "16.2.
|
|
59
|
+
"fastmcp": "4.4.0",
|
|
60
|
+
"globby": "16.2.1",
|
|
61
61
|
"gray-matter": "4.0.3",
|
|
62
|
-
"js-yaml": "
|
|
62
|
+
"js-yaml": "5.2.1",
|
|
63
63
|
"jsonc-parser": "3.3.1",
|
|
64
64
|
"smol-toml": "1.7.0",
|
|
65
65
|
"sury": "10.0.4",
|
|
66
66
|
"zod": "4.4.3"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@anthropic-ai/claude-agent-sdk": "0.3.
|
|
70
|
-
"@openrouter/sdk": "0.13.
|
|
69
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.205",
|
|
70
|
+
"@openrouter/sdk": "0.13.32",
|
|
71
71
|
"@secretlint/secretlint-rule-preset-recommend": "13.0.2",
|
|
72
72
|
"@tsconfig/node24": "24.0.4",
|
|
73
|
-
"@types/
|
|
74
|
-
"@
|
|
75
|
-
"@
|
|
76
|
-
"@vitest/coverage-v8": "4.1.9",
|
|
73
|
+
"@types/node": "26.1.1",
|
|
74
|
+
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
75
|
+
"@vitest/coverage-v8": "4.1.10",
|
|
77
76
|
"cspell": "10.0.1",
|
|
78
|
-
"knip": "6.
|
|
77
|
+
"knip": "6.25.0",
|
|
79
78
|
"lint-staged": "17.0.8",
|
|
80
|
-
"oxfmt": "0.
|
|
81
|
-
"oxlint": "1.
|
|
79
|
+
"oxfmt": "0.58.0",
|
|
80
|
+
"oxlint": "1.73.0",
|
|
82
81
|
"repomix": "1.16.0",
|
|
83
|
-
"resend": "6.
|
|
82
|
+
"resend": "6.17.2",
|
|
84
83
|
"secretlint": "13.0.2",
|
|
85
84
|
"simple-git": "3.36.0",
|
|
86
85
|
"simple-git-hooks": "2.13.1",
|
|
87
86
|
"sort-package-json": "4.0.0",
|
|
88
|
-
"tsdown": "0.22.
|
|
89
|
-
"tsx": "4.
|
|
90
|
-
"typescript": "
|
|
91
|
-
"vite": "8.1.
|
|
87
|
+
"tsdown": "0.22.4",
|
|
88
|
+
"tsx": "4.23.0",
|
|
89
|
+
"typescript": "7.0.2",
|
|
90
|
+
"vite": "8.1.3",
|
|
92
91
|
"vitepress": "1.6.4",
|
|
93
|
-
"vitest": "4.1.
|
|
92
|
+
"vitest": "4.1.10"
|
|
94
93
|
},
|
|
95
94
|
"engines": {
|
|
96
95
|
"node": ">=22.0.0",
|