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