rulesync 8.32.0 → 9.0.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/dist/index.d.ts CHANGED
@@ -1,14 +1,179 @@
1
- import { z } from 'zod/mini';
2
-
3
- declare const ALL_TOOL_TARGET_TUPLES: readonly [readonly ["agentsmd", "aiassistant", "amp", "antigravity", "antigravity-cli", "antigravity-ide", "augmentcode", "augmentcode-legacy", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "geminicli", "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", "geminicli", "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", "geminicli", "goose", "grokcli", "hermesagent", "kilo", "kiro", "kiro-cli", "kiro-ide", "junie", "opencode", "qwencode", "reasonix", "roo", "rovodev", "vibe", "warp", "devin", "zed"], readonly ["agentsmd", "antigravity", "antigravity-ide", "augmentcode", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "cursor", "factorydroid", "geminicli", "goose", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "roo", "takt", "devin"], readonly ["kilo", "agentsmd", "augmentcode", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "devin", "factorydroid", "geminicli", "goose", "grokcli", "hermesagent", "junie", "kiro", "kiro-cli", "kiro-ide", "opencode", "qwencode", "roo", "rovodev", "takt", "vibe"], readonly ["agentsmd", "agentsskills", "aiassistant", "amp", "antigravity", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "geminicli", "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", "geminicli", "goose", "hermesagent", "deepagents", "kiro", "kiro-cli", "devin", "augmentcode", "junie", "vibe", "qwencode"], readonly ["amp", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "cline", "codexcli", "cursor", "factorydroid", "geminicli", "goose", "grokcli", "hermesagent", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "qwencode", "rovodev", "takt", "vibe", "warp", "zed"]];
1
+ import { z } from "zod/mini";
4
2
 
3
+ //#region src/types/features.d.ts
4
+ declare const ALL_FEATURES: readonly ["rules", "ignore", "mcp", "subagents", "commands", "skills", "hooks", "permissions"];
5
+ declare const FeatureSchema: z.ZodMiniEnum<{
6
+ rules: "rules";
7
+ ignore: "ignore";
8
+ mcp: "mcp";
9
+ subagents: "subagents";
10
+ commands: "commands";
11
+ skills: "skills";
12
+ hooks: "hooks";
13
+ permissions: "permissions";
14
+ }>;
15
+ type Feature = z.infer<typeof FeatureSchema>;
16
+ //#endregion
17
+ //#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", "vibe", "warp", "devin", "zed"], readonly ["agentsmd", "antigravity-ide", "augmentcode", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "cursor", "factorydroid", "goose", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "roo", "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", "devin", "augmentcode", "junie", "vibe", "qwencode"], readonly ["amp", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "cline", "codexcli", "cursor", "factorydroid", "goose", "grokcli", "hermesagent", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "qwencode", "rovodev", "takt", "vibe", "warp", "zed"]];
19
+ //#endregion
20
+ //#region src/types/tool-targets.d.ts
5
21
  type AllToolTarget = (typeof ALL_TOOL_TARGET_TUPLES)[number][number];
6
22
  declare const ALL_TOOL_TARGETS: readonly [AllToolTarget, ...AllToolTarget[]];
7
23
  declare const ToolTargetSchema: z.ZodMiniEnum<{
24
+ agentsmd: "agentsmd";
25
+ aiassistant: "aiassistant";
26
+ amp: "amp";
27
+ "antigravity-cli": "antigravity-cli";
28
+ "antigravity-ide": "antigravity-ide";
29
+ augmentcode: "augmentcode";
30
+ "augmentcode-legacy": "augmentcode-legacy";
31
+ claudecode: "claudecode";
32
+ "claudecode-legacy": "claudecode-legacy";
33
+ cline: "cline";
34
+ codexcli: "codexcli";
35
+ copilot: "copilot";
36
+ copilotcli: "copilotcli";
37
+ cursor: "cursor";
38
+ deepagents: "deepagents";
39
+ factorydroid: "factorydroid";
40
+ goose: "goose";
41
+ grokcli: "grokcli";
42
+ hermesagent: "hermesagent";
43
+ junie: "junie";
44
+ kilo: "kilo";
45
+ kiro: "kiro";
46
+ "kiro-cli": "kiro-cli";
47
+ "kiro-ide": "kiro-ide";
48
+ opencode: "opencode";
49
+ pi: "pi";
50
+ qwencode: "qwencode";
51
+ replit: "replit";
52
+ roo: "roo";
53
+ rovodev: "rovodev";
54
+ takt: "takt";
55
+ vibe: "vibe";
56
+ warp: "warp";
57
+ devin: "devin";
58
+ zed: "zed";
59
+ reasonix: "reasonix";
60
+ agentsskills: "agentsskills";
61
+ }>;
62
+ type ToolTarget = z.infer<typeof ToolTargetSchema>;
63
+ //#endregion
64
+ //#region src/lib/convert.d.ts
65
+ type ConvertResult = {
66
+ rulesCount: number;
67
+ ignoreCount: number;
68
+ mcpCount: number;
69
+ commandsCount: number;
70
+ subagentsCount: number;
71
+ skillsCount: number;
72
+ hooksCount: number;
73
+ permissionsCount: number;
74
+ };
75
+ //#endregion
76
+ //#region src/types/ai-dir.d.ts
77
+ type ValidationResult = {
78
+ success: true;
79
+ error: undefined | null;
80
+ } | {
81
+ success: false;
82
+ error: Error;
83
+ };
84
+ type AiDirFile = {
85
+ relativeFilePathToDirPath: string;
86
+ fileBuffer: Buffer;
87
+ };
88
+ type AiDirParams = {
89
+ outputRoot?: string;
90
+ relativeDirPath: string;
91
+ dirName: string;
92
+ mainFile?: {
93
+ name: string;
94
+ body: string;
95
+ frontmatter?: Record<string, unknown>;
96
+ };
97
+ otherFiles?: AiDirFile[];
98
+ global?: boolean;
99
+ };
100
+ type AiDirFromDirParams = Pick<AiDirParams, "outputRoot" | "relativeDirPath" | "dirName" | "global">;
101
+ declare abstract class AiDir {
102
+ /**
103
+ * @example "."
104
+ */
105
+ protected readonly outputRoot: string;
106
+ /**
107
+ * @example ".rulesync/skills"
108
+ */
109
+ protected readonly relativeDirPath: string;
110
+ /**
111
+ * @example "my-skill"
112
+ */
113
+ protected readonly dirName: string;
114
+ /**
115
+ * Optional main file with frontmatter support
116
+ */
117
+ protected mainFile?: {
118
+ name: string;
119
+ body: string;
120
+ frontmatter?: Record<string, unknown>;
121
+ };
122
+ /**
123
+ * Additional files in the directory
124
+ */
125
+ protected otherFiles: AiDirFile[];
126
+ /**
127
+ * @example false
128
+ */
129
+ protected readonly global: boolean;
130
+ constructor({
131
+ outputRoot,
132
+ relativeDirPath,
133
+ dirName,
134
+ mainFile,
135
+ otherFiles,
136
+ global
137
+ }: AiDirParams);
138
+ static fromDir(_params: AiDirFromDirParams): Promise<AiDir>;
139
+ getOutputRoot(): string;
140
+ getRelativeDirPath(): string;
141
+ getDirName(): string;
142
+ getDirPath(): string;
143
+ getMainFile(): {
144
+ name: string;
145
+ body: string;
146
+ frontmatter?: Record<string, unknown>;
147
+ } | undefined;
148
+ getOtherFiles(): AiDirFile[];
149
+ /**
150
+ * Returns the relative path from CWD with POSIX separators for consistent cross-platform output.
151
+ */
152
+ getRelativePathFromCwd(): string;
153
+ getGlobal(): boolean;
154
+ setMainFile(name: string, body: string, frontmatter?: Record<string, unknown>): void;
155
+ /**
156
+ * Recursively collects all files from a directory, excluding the specified main file.
157
+ * This is a common utility for loading additional files alongside the main file.
158
+ *
159
+ * @param outputRoot - The base directory path
160
+ * @param relativeDirPath - The relative path to the directory containing the skill
161
+ * @param dirName - The name of the directory
162
+ * @param excludeFileName - The name of the file to exclude (typically the main file)
163
+ * @returns Array of files with their relative paths and buffers
164
+ */
165
+ protected static collectOtherFiles(outputRoot: string, relativeDirPath: string, dirName: string, excludeFileName: string): Promise<AiDirFile[]>;
166
+ abstract validate(): ValidationResult;
167
+ }
168
+ //#endregion
169
+ //#region src/features/skills/rulesync-skill.d.ts
170
+ declare const RulesyncSkillFrontmatterSchemaInternal: z.ZodMiniObject<{
171
+ name: z.ZodMiniString<string>;
172
+ description: z.ZodMiniString<string>;
173
+ targets: z.ZodMiniDefault<z.ZodMiniArray<z.ZodMiniEnum<{
8
174
  agentsmd: "agentsmd";
9
175
  aiassistant: "aiassistant";
10
176
  amp: "amp";
11
- antigravity: "antigravity";
12
177
  "antigravity-cli": "antigravity-cli";
13
178
  "antigravity-ide": "antigravity-ide";
14
179
  augmentcode: "augmentcode";
@@ -22,7 +187,6 @@ declare const ToolTargetSchema: z.ZodMiniEnum<{
22
187
  cursor: "cursor";
23
188
  deepagents: "deepagents";
24
189
  factorydroid: "factorydroid";
25
- geminicli: "geminicli";
26
190
  goose: "goose";
27
191
  grokcli: "grokcli";
28
192
  hermesagent: "hermesagent";
@@ -44,510 +208,366 @@ declare const ToolTargetSchema: z.ZodMiniEnum<{
44
208
  zed: "zed";
45
209
  reasonix: "reasonix";
46
210
  agentsskills: "agentsskills";
47
- }>;
48
- type ToolTarget = z.infer<typeof ToolTargetSchema>;
49
-
50
- declare const ALL_FEATURES: readonly ["rules", "ignore", "mcp", "subagents", "commands", "skills", "hooks", "permissions"];
51
- declare const FeatureSchema: z.ZodMiniEnum<{
52
- rules: "rules";
53
- ignore: "ignore";
54
- mcp: "mcp";
55
- subagents: "subagents";
56
- commands: "commands";
57
- skills: "skills";
58
- hooks: "hooks";
59
- permissions: "permissions";
60
- }>;
61
- type Feature = z.infer<typeof FeatureSchema>;
62
-
63
- type ConvertResult = {
64
- rulesCount: number;
65
- ignoreCount: number;
66
- mcpCount: number;
67
- commandsCount: number;
68
- subagentsCount: number;
69
- skillsCount: number;
70
- hooksCount: number;
71
- permissionsCount: number;
72
- };
73
-
74
- type ValidationResult = {
75
- success: true;
76
- error: undefined | null;
77
- } | {
78
- success: false;
79
- error: Error;
80
- };
81
- type AiDirFile = {
82
- relativeFilePathToDirPath: string;
83
- fileBuffer: Buffer;
84
- };
85
- type AiDirParams = {
86
- outputRoot?: string;
87
- relativeDirPath: string;
88
- dirName: string;
89
- mainFile?: {
90
- name: string;
91
- body: string;
92
- frontmatter?: Record<string, unknown>;
93
- };
94
- otherFiles?: AiDirFile[];
95
- global?: boolean;
96
- };
97
- type AiDirFromDirParams = Pick<AiDirParams, "outputRoot" | "relativeDirPath" | "dirName" | "global">;
98
- declare abstract class AiDir {
99
- /**
100
- * @example "."
101
- */
102
- protected readonly outputRoot: string;
103
- /**
104
- * @example ".rulesync/skills"
105
- */
106
- protected readonly relativeDirPath: string;
107
- /**
108
- * @example "my-skill"
109
- */
110
- protected readonly dirName: string;
111
- /**
112
- * Optional main file with frontmatter support
113
- */
114
- protected mainFile?: {
115
- name: string;
116
- body: string;
117
- frontmatter?: Record<string, unknown>;
118
- };
119
- /**
120
- * Additional files in the directory
121
- */
122
- protected otherFiles: AiDirFile[];
123
- /**
124
- * @example false
125
- */
126
- protected readonly global: boolean;
127
- constructor({ outputRoot, relativeDirPath, dirName, mainFile, otherFiles, global, }: AiDirParams);
128
- static fromDir(_params: AiDirFromDirParams): Promise<AiDir>;
129
- getOutputRoot(): string;
130
- getRelativeDirPath(): string;
131
- getDirName(): string;
132
- getDirPath(): string;
133
- getMainFile(): {
134
- name: string;
135
- body: string;
136
- frontmatter?: Record<string, unknown>;
137
- } | undefined;
138
- getOtherFiles(): AiDirFile[];
139
- /**
140
- * Returns the relative path from CWD with POSIX separators for consistent cross-platform output.
141
- */
142
- getRelativePathFromCwd(): string;
143
- getGlobal(): boolean;
144
- setMainFile(name: string, body: string, frontmatter?: Record<string, unknown>): void;
145
- /**
146
- * Recursively collects all files from a directory, excluding the specified main file.
147
- * This is a common utility for loading additional files alongside the main file.
148
- *
149
- * @param outputRoot - The base directory path
150
- * @param relativeDirPath - The relative path to the directory containing the skill
151
- * @param dirName - The name of the directory
152
- * @param excludeFileName - The name of the file to exclude (typically the main file)
153
- * @returns Array of files with their relative paths and buffers
154
- */
155
- protected static collectOtherFiles(outputRoot: string, relativeDirPath: string, dirName: string, excludeFileName: string): Promise<AiDirFile[]>;
156
- abstract validate(): ValidationResult;
157
- }
158
-
159
- declare const RulesyncSkillFrontmatterSchemaInternal: z.ZodMiniObject<{
160
- name: z.ZodMiniString<string>;
161
- description: z.ZodMiniString<string>;
162
- targets: z.ZodMiniDefault<z.ZodMiniArray<z.ZodMiniEnum<{
163
- agentsmd: "agentsmd";
164
- aiassistant: "aiassistant";
165
- amp: "amp";
166
- antigravity: "antigravity";
167
- "antigravity-cli": "antigravity-cli";
168
- "antigravity-ide": "antigravity-ide";
169
- augmentcode: "augmentcode";
170
- "augmentcode-legacy": "augmentcode-legacy";
171
- claudecode: "claudecode";
172
- "claudecode-legacy": "claudecode-legacy";
173
- cline: "cline";
174
- codexcli: "codexcli";
175
- copilot: "copilot";
176
- copilotcli: "copilotcli";
177
- cursor: "cursor";
178
- deepagents: "deepagents";
179
- factorydroid: "factorydroid";
180
- geminicli: "geminicli";
181
- goose: "goose";
182
- grokcli: "grokcli";
183
- hermesagent: "hermesagent";
184
- junie: "junie";
185
- kilo: "kilo";
186
- kiro: "kiro";
187
- "kiro-cli": "kiro-cli";
188
- "kiro-ide": "kiro-ide";
189
- opencode: "opencode";
190
- pi: "pi";
191
- qwencode: "qwencode";
192
- replit: "replit";
193
- roo: "roo";
194
- rovodev: "rovodev";
195
- takt: "takt";
196
- vibe: "vibe";
197
- warp: "warp";
198
- devin: "devin";
199
- zed: "zed";
200
- reasonix: "reasonix";
201
- agentsskills: "agentsskills";
202
- "*": "*";
203
- }>>>;
211
+ "*": "*";
212
+ }>>>;
213
+ "disable-model-invocation": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
214
+ "user-invocable": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
215
+ claudecode: z.ZodMiniOptional<z.ZodMiniObject<{
216
+ when_to_use: z.ZodMiniOptional<z.ZodMiniString<string>>;
217
+ "allowed-tools": z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
218
+ "disallowed-tools": z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
219
+ model: z.ZodMiniOptional<z.ZodMiniString<string>>;
220
+ effort: z.ZodMiniOptional<z.ZodMiniString<string>>;
221
+ "argument-hint": z.ZodMiniOptional<z.ZodMiniString<string>>;
222
+ arguments: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
223
+ context: z.ZodMiniOptional<z.ZodMiniString<string>>;
224
+ agent: z.ZodMiniOptional<z.ZodMiniString<string>>;
225
+ hooks: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
226
+ shell: z.ZodMiniOptional<z.ZodMiniString<string>>;
204
227
  "disable-model-invocation": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
205
228
  "user-invocable": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
206
- claudecode: z.ZodMiniOptional<z.ZodMiniObject<{
207
- when_to_use: z.ZodMiniOptional<z.ZodMiniString<string>>;
208
- "allowed-tools": z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
209
- "disallowed-tools": z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
210
- model: z.ZodMiniOptional<z.ZodMiniString<string>>;
211
- effort: z.ZodMiniOptional<z.ZodMiniString<string>>;
212
- "argument-hint": z.ZodMiniOptional<z.ZodMiniString<string>>;
213
- arguments: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
214
- context: z.ZodMiniOptional<z.ZodMiniString<string>>;
215
- agent: z.ZodMiniOptional<z.ZodMiniString<string>>;
216
- hooks: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
217
- shell: z.ZodMiniOptional<z.ZodMiniString<string>>;
218
- "disable-model-invocation": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
219
- "user-invocable": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
220
- "scheduled-task": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
221
- paths: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
222
- }, z.core.$loose>>;
223
- codexcli: z.ZodMiniOptional<z.ZodMiniObject<{
224
- "short-description": z.ZodMiniOptional<z.ZodMiniString<string>>;
225
- interface: z.ZodMiniOptional<z.ZodMiniObject<{
226
- display_name: z.ZodMiniOptional<z.ZodMiniString<string>>;
227
- short_description: z.ZodMiniOptional<z.ZodMiniString<string>>;
228
- icon_small: z.ZodMiniOptional<z.ZodMiniString<string>>;
229
- icon_large: z.ZodMiniOptional<z.ZodMiniString<string>>;
230
- brand_color: z.ZodMiniOptional<z.ZodMiniString<string>>;
231
- default_prompt: z.ZodMiniOptional<z.ZodMiniString<string>>;
232
- }, z.core.$loose>>;
233
- policy: z.ZodMiniOptional<z.ZodMiniObject<{
234
- allow_implicit_invocation: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
235
- }, z.core.$loose>>;
236
- dependencies: z.ZodMiniOptional<z.ZodMiniObject<{
237
- tools: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
238
- type: z.ZodMiniOptional<z.ZodMiniString<string>>;
239
- value: z.ZodMiniOptional<z.ZodMiniString<string>>;
240
- description: z.ZodMiniOptional<z.ZodMiniString<string>>;
241
- transport: z.ZodMiniOptional<z.ZodMiniString<string>>;
242
- url: z.ZodMiniOptional<z.ZodMiniString<string>>;
243
- }, z.core.$loose>>>;
244
- }, z.core.$loose>>;
245
- }, z.core.$loose>>;
246
- opencode: z.ZodMiniOptional<z.ZodMiniObject<{
247
- "allowed-tools": z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
248
- license: z.ZodMiniOptional<z.ZodMiniString<string>>;
249
- compatibility: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
250
- metadata: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
251
- }, z.core.$loose>>;
252
- kilo: z.ZodMiniOptional<z.ZodMiniObject<{
253
- "allowed-tools": z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
254
- license: z.ZodMiniOptional<z.ZodMiniString<string>>;
255
- compatibility: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
256
- metadata: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
257
- }, z.core.$loose>>;
258
- deepagents: z.ZodMiniOptional<z.ZodMiniObject<{
259
- "allowed-tools": z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
260
- license: z.ZodMiniOptional<z.ZodMiniString<string>>;
261
- compatibility: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{}, z.core.$loose>]>>;
262
- metadata: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
263
- }, z.core.$loose>>;
264
- copilot: z.ZodMiniOptional<z.ZodMiniObject<{
265
- license: z.ZodMiniOptional<z.ZodMiniString<string>>;
266
- "allowed-tools": z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
267
- }, z.core.$loose>>;
268
- copilotcli: z.ZodMiniOptional<z.ZodMiniObject<{
269
- license: z.ZodMiniOptional<z.ZodMiniString<string>>;
270
- "allowed-tools": z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
271
- }, z.core.$loose>>;
272
- pi: z.ZodMiniOptional<z.ZodMiniObject<{
273
- "allowed-tools": z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
274
- "disable-model-invocation": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
275
- license: z.ZodMiniOptional<z.ZodMiniString<string>>;
276
- compatibility: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
277
- metadata: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
278
- }, z.core.$loose>>;
279
- zed: z.ZodMiniOptional<z.ZodMiniObject<{
280
- "disable-model-invocation": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
281
- }, z.core.$loose>>;
282
- replit: z.ZodMiniOptional<z.ZodMiniObject<{
283
- "allowed-tools": z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
284
- license: z.ZodMiniOptional<z.ZodMiniString<string>>;
285
- compatibility: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
286
- metadata: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
229
+ "scheduled-task": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
230
+ paths: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
231
+ }, z.core.$loose>>;
232
+ codexcli: z.ZodMiniOptional<z.ZodMiniObject<{
233
+ "short-description": z.ZodMiniOptional<z.ZodMiniString<string>>;
234
+ interface: z.ZodMiniOptional<z.ZodMiniObject<{
235
+ display_name: z.ZodMiniOptional<z.ZodMiniString<string>>;
236
+ short_description: z.ZodMiniOptional<z.ZodMiniString<string>>;
237
+ icon_small: z.ZodMiniOptional<z.ZodMiniString<string>>;
238
+ icon_large: z.ZodMiniOptional<z.ZodMiniString<string>>;
239
+ brand_color: z.ZodMiniOptional<z.ZodMiniString<string>>;
240
+ default_prompt: z.ZodMiniOptional<z.ZodMiniString<string>>;
287
241
  }, z.core.$loose>>;
288
- cline: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
289
- roo: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
290
- rovodev: z.ZodMiniOptional<z.ZodMiniObject<{
291
- "allowed-tools": z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
292
- license: z.ZodMiniOptional<z.ZodMiniString<string>>;
293
- compatibility: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{}, z.core.$loose>]>>;
294
- metadata: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
242
+ policy: z.ZodMiniOptional<z.ZodMiniObject<{
243
+ allow_implicit_invocation: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
295
244
  }, z.core.$loose>>;
296
- cursor: z.ZodMiniOptional<z.ZodMiniObject<{
297
- paths: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
298
- "disable-model-invocation": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
299
- metadata: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
300
- }, z.core.$loose>>;
301
- factorydroid: z.ZodMiniOptional<z.ZodMiniObject<{
302
- "disable-model-invocation": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
303
- "user-invocable": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
304
- }, z.core.$loose>>;
305
- agentsskills: z.ZodMiniOptional<z.ZodMiniObject<{
306
- license: z.ZodMiniOptional<z.ZodMiniString<string>>;
307
- compatibility: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{}, z.core.$loose>]>>;
308
- metadata: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
309
- "allowed-tools": z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
310
- }, z.core.$loose>>;
311
- vibe: z.ZodMiniOptional<z.ZodMiniObject<{
312
- license: z.ZodMiniOptional<z.ZodMiniString<string>>;
313
- compatibility: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{}, z.core.$loose>]>>;
314
- metadata: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
315
- "user-invocable": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
316
- "allowed-tools": z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
317
- }, z.core.$loose>>;
318
- takt: z.ZodMiniOptional<z.ZodMiniObject<{
319
- name: z.ZodMiniOptional<z.ZodMiniString<string>>;
320
- extends: z.ZodMiniOptional<z.ZodMiniString<string>>;
245
+ dependencies: z.ZodMiniOptional<z.ZodMiniObject<{
246
+ tools: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
247
+ type: z.ZodMiniOptional<z.ZodMiniString<string>>;
248
+ value: z.ZodMiniOptional<z.ZodMiniString<string>>;
249
+ description: z.ZodMiniOptional<z.ZodMiniString<string>>;
250
+ transport: z.ZodMiniOptional<z.ZodMiniString<string>>;
251
+ url: z.ZodMiniOptional<z.ZodMiniString<string>>;
252
+ }, z.core.$loose>>>;
321
253
  }, z.core.$loose>>;
254
+ }, z.core.$loose>>;
255
+ opencode: z.ZodMiniOptional<z.ZodMiniObject<{
256
+ "allowed-tools": z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
257
+ license: z.ZodMiniOptional<z.ZodMiniString<string>>;
258
+ compatibility: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
259
+ metadata: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
260
+ }, z.core.$loose>>;
261
+ kilo: z.ZodMiniOptional<z.ZodMiniObject<{
262
+ "allowed-tools": z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
263
+ license: z.ZodMiniOptional<z.ZodMiniString<string>>;
264
+ compatibility: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
265
+ metadata: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
266
+ }, z.core.$loose>>;
267
+ deepagents: z.ZodMiniOptional<z.ZodMiniObject<{
268
+ "allowed-tools": z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
269
+ license: z.ZodMiniOptional<z.ZodMiniString<string>>;
270
+ compatibility: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{}, z.core.$loose>]>>;
271
+ metadata: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
272
+ }, z.core.$loose>>;
273
+ copilot: z.ZodMiniOptional<z.ZodMiniObject<{
274
+ license: z.ZodMiniOptional<z.ZodMiniString<string>>;
275
+ "allowed-tools": z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
276
+ }, z.core.$loose>>;
277
+ copilotcli: z.ZodMiniOptional<z.ZodMiniObject<{
278
+ license: z.ZodMiniOptional<z.ZodMiniString<string>>;
279
+ "allowed-tools": z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
280
+ }, z.core.$loose>>;
281
+ pi: z.ZodMiniOptional<z.ZodMiniObject<{
282
+ "allowed-tools": z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
283
+ "disable-model-invocation": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
284
+ license: z.ZodMiniOptional<z.ZodMiniString<string>>;
285
+ compatibility: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
286
+ metadata: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
287
+ }, z.core.$loose>>;
288
+ zed: z.ZodMiniOptional<z.ZodMiniObject<{
289
+ "disable-model-invocation": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
290
+ }, z.core.$loose>>;
291
+ replit: z.ZodMiniOptional<z.ZodMiniObject<{
292
+ "allowed-tools": z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
293
+ license: z.ZodMiniOptional<z.ZodMiniString<string>>;
294
+ compatibility: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
295
+ metadata: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
296
+ }, z.core.$loose>>;
297
+ cline: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
298
+ roo: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
299
+ rovodev: z.ZodMiniOptional<z.ZodMiniObject<{
300
+ "allowed-tools": z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
301
+ license: z.ZodMiniOptional<z.ZodMiniString<string>>;
302
+ compatibility: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{}, z.core.$loose>]>>;
303
+ metadata: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
304
+ }, z.core.$loose>>;
305
+ cursor: z.ZodMiniOptional<z.ZodMiniObject<{
306
+ paths: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
307
+ "disable-model-invocation": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
308
+ metadata: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
309
+ }, z.core.$loose>>;
310
+ factorydroid: z.ZodMiniOptional<z.ZodMiniObject<{
311
+ "disable-model-invocation": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
312
+ "user-invocable": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
313
+ }, z.core.$loose>>;
314
+ agentsskills: z.ZodMiniOptional<z.ZodMiniObject<{
315
+ license: z.ZodMiniOptional<z.ZodMiniString<string>>;
316
+ compatibility: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{}, z.core.$loose>]>>;
317
+ metadata: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
318
+ "allowed-tools": z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
319
+ }, z.core.$loose>>;
320
+ vibe: z.ZodMiniOptional<z.ZodMiniObject<{
321
+ license: z.ZodMiniOptional<z.ZodMiniString<string>>;
322
+ compatibility: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{}, z.core.$loose>]>>;
323
+ metadata: z.ZodMiniOptional<z.ZodMiniObject<{}, z.core.$loose>>;
324
+ "user-invocable": z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
325
+ "allowed-tools": z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
326
+ }, z.core.$loose>>;
327
+ takt: z.ZodMiniOptional<z.ZodMiniObject<{
328
+ name: z.ZodMiniOptional<z.ZodMiniString<string>>;
329
+ extends: z.ZodMiniOptional<z.ZodMiniString<string>>;
330
+ }, z.core.$loose>>;
322
331
  }, z.core.$loose>;
323
332
  type RulesyncSkillFrontmatterInput = {
324
- name: string;
325
- description: string;
326
- targets?: ("*" | string)[];
333
+ name: string;
334
+ description: string;
335
+ targets?: ("*" | string)[];
336
+ "disable-model-invocation"?: boolean;
337
+ "user-invocable"?: boolean;
338
+ claudecode?: {
339
+ when_to_use?: string;
340
+ "allowed-tools"?: string | string[];
341
+ "disallowed-tools"?: string | string[];
342
+ model?: string;
343
+ effort?: string;
344
+ "argument-hint"?: string;
345
+ arguments?: string | string[];
346
+ context?: string;
347
+ agent?: string;
348
+ hooks?: Record<string, unknown>;
349
+ shell?: string;
327
350
  "disable-model-invocation"?: boolean;
328
351
  "user-invocable"?: boolean;
329
- claudecode?: {
330
- when_to_use?: string;
331
- "allowed-tools"?: string | string[];
332
- "disallowed-tools"?: string | string[];
333
- model?: string;
334
- effort?: string;
335
- "argument-hint"?: string;
336
- arguments?: string | string[];
337
- context?: string;
338
- agent?: string;
339
- hooks?: Record<string, unknown>;
340
- shell?: string;
341
- "disable-model-invocation"?: boolean;
342
- "user-invocable"?: boolean;
343
- "scheduled-task"?: boolean;
344
- paths?: string | string[];
345
- };
346
- codexcli?: {
347
- "short-description"?: string;
348
- interface?: {
349
- display_name?: string;
350
- short_description?: string;
351
- icon_small?: string;
352
- icon_large?: string;
353
- brand_color?: string;
354
- default_prompt?: string;
355
- };
356
- policy?: {
357
- allow_implicit_invocation?: boolean;
358
- };
359
- dependencies?: {
360
- tools?: Array<{
361
- type?: string;
362
- value?: string;
363
- description?: string;
364
- transport?: string;
365
- url?: string;
366
- }>;
367
- };
352
+ "scheduled-task"?: boolean;
353
+ paths?: string | string[];
354
+ };
355
+ codexcli?: {
356
+ "short-description"?: string;
357
+ interface?: {
358
+ display_name?: string;
359
+ short_description?: string;
360
+ icon_small?: string;
361
+ icon_large?: string;
362
+ brand_color?: string;
363
+ default_prompt?: string;
368
364
  };
369
- opencode?: {
370
- "allowed-tools"?: string[];
371
- license?: string;
372
- compatibility?: Record<string, unknown>;
373
- metadata?: Record<string, unknown>;
365
+ policy?: {
366
+ allow_implicit_invocation?: boolean;
374
367
  };
375
- kilo?: {
376
- "allowed-tools"?: string[];
377
- };
378
- deepagents?: {
379
- "allowed-tools"?: string[];
380
- license?: string;
381
- compatibility?: string | Record<string, unknown>;
382
- metadata?: Record<string, unknown>;
383
- };
384
- copilot?: {
385
- license?: string;
386
- "allowed-tools"?: string | string[];
387
- };
388
- copilotcli?: {
389
- license?: string;
390
- "allowed-tools"?: string | string[];
391
- };
392
- pi?: {
393
- "allowed-tools"?: string[];
394
- "disable-model-invocation"?: boolean;
395
- license?: string;
396
- compatibility?: Record<string, unknown>;
397
- metadata?: Record<string, unknown>;
398
- };
399
- zed?: {
400
- "disable-model-invocation"?: boolean;
401
- };
402
- replit?: {
403
- "allowed-tools"?: string[];
404
- license?: string;
405
- compatibility?: Record<string, unknown>;
406
- metadata?: Record<string, unknown>;
407
- };
408
- roo?: Record<string, unknown>;
409
- cline?: Record<string, unknown>;
410
- rovodev?: {
411
- "allowed-tools"?: string | string[];
412
- license?: string;
413
- compatibility?: string | Record<string, unknown>;
414
- metadata?: Record<string, unknown>;
415
- };
416
- cursor?: {
417
- paths?: string | string[];
418
- "disable-model-invocation"?: boolean;
419
- metadata?: Record<string, unknown>;
420
- };
421
- factorydroid?: {
422
- "disable-model-invocation"?: boolean;
423
- "user-invocable"?: boolean;
424
- };
425
- agentsskills?: {
426
- license?: string;
427
- compatibility?: string | Record<string, unknown>;
428
- metadata?: Record<string, unknown>;
429
- "allowed-tools"?: string | string[];
430
- };
431
- vibe?: {
432
- license?: string;
433
- compatibility?: string | Record<string, unknown>;
434
- metadata?: Record<string, unknown>;
435
- "user-invocable"?: boolean;
436
- "allowed-tools"?: string | string[];
437
- };
438
- takt?: {
439
- name?: string;
440
- extends?: string;
368
+ dependencies?: {
369
+ tools?: Array<{
370
+ type?: string;
371
+ value?: string;
372
+ description?: string;
373
+ transport?: string;
374
+ url?: string;
375
+ }>;
441
376
  };
377
+ };
378
+ opencode?: {
379
+ "allowed-tools"?: string[];
380
+ license?: string;
381
+ compatibility?: Record<string, unknown>;
382
+ metadata?: Record<string, unknown>;
383
+ };
384
+ kilo?: {
385
+ "allowed-tools"?: string[];
386
+ };
387
+ deepagents?: {
388
+ "allowed-tools"?: string[];
389
+ license?: string;
390
+ compatibility?: string | Record<string, unknown>;
391
+ metadata?: Record<string, unknown>;
392
+ };
393
+ copilot?: {
394
+ license?: string;
395
+ "allowed-tools"?: string | string[];
396
+ };
397
+ copilotcli?: {
398
+ license?: string;
399
+ "allowed-tools"?: string | string[];
400
+ };
401
+ pi?: {
402
+ "allowed-tools"?: string[];
403
+ "disable-model-invocation"?: boolean;
404
+ license?: string;
405
+ compatibility?: Record<string, unknown>;
406
+ metadata?: Record<string, unknown>;
407
+ };
408
+ zed?: {
409
+ "disable-model-invocation"?: boolean;
410
+ };
411
+ replit?: {
412
+ "allowed-tools"?: string[];
413
+ license?: string;
414
+ compatibility?: Record<string, unknown>;
415
+ metadata?: Record<string, unknown>;
416
+ };
417
+ roo?: Record<string, unknown>;
418
+ cline?: Record<string, unknown>;
419
+ rovodev?: {
420
+ "allowed-tools"?: string | string[];
421
+ license?: string;
422
+ compatibility?: string | Record<string, unknown>;
423
+ metadata?: Record<string, unknown>;
424
+ };
425
+ cursor?: {
426
+ paths?: string | string[];
427
+ "disable-model-invocation"?: boolean;
428
+ metadata?: Record<string, unknown>;
429
+ };
430
+ factorydroid?: {
431
+ "disable-model-invocation"?: boolean;
432
+ "user-invocable"?: boolean;
433
+ };
434
+ agentsskills?: {
435
+ license?: string;
436
+ compatibility?: string | Record<string, unknown>;
437
+ metadata?: Record<string, unknown>;
438
+ "allowed-tools"?: string | string[];
439
+ };
440
+ vibe?: {
441
+ license?: string;
442
+ compatibility?: string | Record<string, unknown>;
443
+ metadata?: Record<string, unknown>;
444
+ "user-invocable"?: boolean;
445
+ "allowed-tools"?: string | string[];
446
+ };
447
+ takt?: {
448
+ name?: string;
449
+ extends?: string;
450
+ };
442
451
  };
443
452
  type RulesyncSkillFrontmatter = z.infer<typeof RulesyncSkillFrontmatterSchemaInternal>;
444
453
  type RulesyncSkillParams = {
445
- outputRoot?: string;
446
- relativeDirPath?: string;
447
- dirName: string;
448
- frontmatter: RulesyncSkillFrontmatterInput;
449
- body: string;
450
- otherFiles?: AiDirFile[];
451
- validate?: boolean;
452
- global?: boolean;
454
+ outputRoot?: string;
455
+ relativeDirPath?: string;
456
+ dirName: string;
457
+ frontmatter: RulesyncSkillFrontmatterInput;
458
+ body: string;
459
+ otherFiles?: AiDirFile[];
460
+ validate?: boolean;
461
+ global?: boolean;
453
462
  };
454
463
  type RulesyncSkillSettablePaths = {
455
- relativeDirPath: string;
464
+ relativeDirPath: string;
456
465
  };
457
466
  type RulesyncSkillFromDirParams = {
458
- outputRoot?: string;
459
- relativeDirPath?: string;
460
- dirName: string;
461
- global?: boolean;
467
+ outputRoot?: string;
468
+ relativeDirPath?: string;
469
+ dirName: string;
470
+ global?: boolean;
462
471
  };
463
472
  /**
464
473
  * Represents a Rulesync skill directory with SKILL.md and optional additional files.
465
474
  * Extends AiDir to inherit directory management and security features.
466
475
  */
467
476
  declare class RulesyncSkill extends AiDir {
468
- constructor({ outputRoot, relativeDirPath, dirName, frontmatter, body, otherFiles, validate, global, }: RulesyncSkillParams);
469
- static getSettablePaths(): RulesyncSkillSettablePaths;
470
- getFrontmatter(): RulesyncSkillFrontmatter;
471
- getBody(): string;
472
- validate(): ValidationResult;
473
- static fromDir({ outputRoot, relativeDirPath, dirName, global, }: RulesyncSkillFromDirParams): Promise<RulesyncSkill>;
477
+ constructor({
478
+ outputRoot,
479
+ relativeDirPath,
480
+ dirName,
481
+ frontmatter,
482
+ body,
483
+ otherFiles,
484
+ validate,
485
+ global
486
+ }: RulesyncSkillParams);
487
+ static getSettablePaths(): RulesyncSkillSettablePaths;
488
+ getFrontmatter(): RulesyncSkillFrontmatter;
489
+ getBody(): string;
490
+ validate(): ValidationResult;
491
+ static fromDir({
492
+ outputRoot,
493
+ relativeDirPath,
494
+ dirName,
495
+ global
496
+ }: RulesyncSkillFromDirParams): Promise<RulesyncSkill>;
474
497
  }
475
-
498
+ //#endregion
499
+ //#region src/lib/generate.d.ts
476
500
  type GenerateResult = {
477
- rulesCount: number;
478
- rulesPaths: string[];
479
- ignoreCount: number;
480
- ignorePaths: string[];
481
- mcpCount: number;
482
- mcpPaths: string[];
483
- commandsCount: number;
484
- commandsPaths: string[];
485
- subagentsCount: number;
486
- subagentsPaths: string[];
487
- skillsCount: number;
488
- skillsPaths: string[];
489
- hooksCount: number;
490
- hooksPaths: string[];
491
- permissionsCount: number;
492
- permissionsPaths: string[];
493
- skills: RulesyncSkill[];
494
- hasDiff: boolean;
501
+ rulesCount: number;
502
+ rulesPaths: string[];
503
+ ignoreCount: number;
504
+ ignorePaths: string[];
505
+ mcpCount: number;
506
+ mcpPaths: string[];
507
+ commandsCount: number;
508
+ commandsPaths: string[];
509
+ subagentsCount: number;
510
+ subagentsPaths: string[];
511
+ skillsCount: number;
512
+ skillsPaths: string[];
513
+ hooksCount: number;
514
+ hooksPaths: string[];
515
+ permissionsCount: number;
516
+ permissionsPaths: string[];
517
+ skills: RulesyncSkill[];
518
+ hasDiff: boolean;
495
519
  };
496
-
520
+ //#endregion
521
+ //#region src/lib/import.d.ts
497
522
  type ImportResult = {
498
- rulesCount: number;
499
- ignoreCount: number;
500
- mcpCount: number;
501
- commandsCount: number;
502
- subagentsCount: number;
503
- skillsCount: number;
504
- hooksCount: number;
505
- permissionsCount: number;
523
+ rulesCount: number;
524
+ ignoreCount: number;
525
+ mcpCount: number;
526
+ commandsCount: number;
527
+ subagentsCount: number;
528
+ skillsCount: number;
529
+ hooksCount: number;
530
+ permissionsCount: number;
506
531
  };
507
-
532
+ //#endregion
533
+ //#region src/index.d.ts
508
534
  type BaseOptions = {
509
- configPath?: string;
510
- verbose?: boolean;
511
- silent?: boolean;
512
- global?: boolean;
535
+ configPath?: string;
536
+ verbose?: boolean;
537
+ silent?: boolean;
538
+ global?: boolean;
513
539
  };
514
540
  type GenerateOptions = BaseOptions & {
515
- targets?: ToolTarget[];
516
- features?: Feature[];
517
- outputRoots?: string[];
518
- /**
519
- * @deprecated Use `outputRoots` instead. Accepted as a backward-compatible
520
- * alias for the programmatic API; emits a one-shot deprecation warning when
521
- * provided. When both `outputRoots` and `baseDirs` are supplied,
522
- * `outputRoots` wins. Will be removed in a future major release.
523
- */
524
- baseDirs?: string[];
525
- /**
526
- * Directory containing the `.rulesync/` source files. Defaults to the
527
- * current working directory at config-construction time. When set, output
528
- * is still written to each `outputRoots` entry; only the input source root
529
- * is redirected. Mirrors the CLI's `--input-root` option.
530
- */
531
- inputRoot?: string;
532
- delete?: boolean;
533
- simulateCommands?: boolean;
534
- simulateSubagents?: boolean;
535
- simulateSkills?: boolean;
536
- dryRun?: boolean;
537
- check?: boolean;
541
+ targets?: ToolTarget[];
542
+ features?: Feature[];
543
+ outputRoots?: string[];
544
+ /**
545
+ * Directory containing the `.rulesync/` source files. Defaults to the
546
+ * current working directory at config-construction time. When set, output
547
+ * is still written to each `outputRoots` entry; only the input source root
548
+ * is redirected. Mirrors the CLI's `--input-root` option.
549
+ */
550
+ inputRoot?: string;
551
+ delete?: boolean;
552
+ simulateCommands?: boolean;
553
+ simulateSubagents?: boolean;
554
+ simulateSkills?: boolean;
555
+ dryRun?: boolean;
556
+ check?: boolean;
538
557
  };
539
558
  type ImportOptions = BaseOptions & {
540
- target: ToolTarget;
541
- features?: Feature[];
559
+ target: ToolTarget;
560
+ features?: Feature[];
542
561
  };
543
562
  type ConvertOptions = BaseOptions & {
544
- from: ToolTarget;
545
- to: ToolTarget[];
546
- features?: Feature[];
547
- dryRun?: boolean;
563
+ from: ToolTarget;
564
+ to: ToolTarget[];
565
+ features?: Feature[];
566
+ dryRun?: boolean;
548
567
  };
549
568
  declare function generate(options?: GenerateOptions): Promise<GenerateResult>;
550
569
  declare function importFromTool(options: ImportOptions): Promise<ImportResult>;
551
570
  declare function convertFromTool(options: ConvertOptions): Promise<ConvertResult>;
552
-
553
- export { ALL_FEATURES, ALL_TOOL_TARGETS, type ConvertOptions, type ConvertResult, type Feature, type GenerateOptions, type GenerateResult, type ImportOptions, type ImportResult, type ToolTarget, convertFromTool, generate, importFromTool };
571
+ //#endregion
572
+ export { ALL_FEATURES, ALL_TOOL_TARGETS, ConvertOptions, type ConvertResult, type Feature, GenerateOptions, type GenerateResult, ImportOptions, type ImportResult, type ToolTarget, convertFromTool, generate, importFromTool };
573
+ //# sourceMappingURL=index.d.ts.map