rulesync 7.20.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-5OPNV62F.js → chunk-UYWCICY6.js} +877 -664
- package/dist/cli/index.cjs +1365 -1071
- package/dist/cli/index.js +330 -253
- package/dist/index.cjs +750 -544
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +7 -7
- package/package.json +1 -1
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-5OPNV62F.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,
|