rulesync 16.16.0 → 16.18.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 +4 -3
- package/dist/cli/index.cjs +1509 -189
- package/dist/cli/index.js +1505 -185
- package/dist/cli/index.js.map +1 -1
- package/dist/{import-DimKwtQ6.js → import-BKnAc4rT.js} +6799 -851
- package/dist/import-BKnAc4rT.js.map +1 -0
- package/dist/{import-NiPCjH6E.cjs → import-BQpUs1JO.cjs} +6902 -864
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +126 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +126 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/import-DimKwtQ6.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_import = require("./import-
|
|
2
|
+
const require_import = require("./import-BQpUs1JO.cjs");
|
|
3
3
|
//#region src/index.ts
|
|
4
4
|
async function generate(options = {}) {
|
|
5
5
|
const { silent = true, verbose = false, ...rest } = options;
|
package/dist/index.d.cts
CHANGED
|
@@ -14,7 +14,7 @@ declare const FeatureSchema: z.ZodMiniUnion<readonly [z.ZodMiniEnum<{
|
|
|
14
14
|
type Feature = z.infer<typeof FeatureSchema>;
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/types/tool-target-tuples.d.ts
|
|
17
|
-
declare const ALL_TOOL_TARGET_TUPLES: readonly [readonly ["agentsmd", "aiassistant", "amp", "antigravity-cli", "antigravity-ide", "antigravity-plugin", "augmentcode", "augmentcode-legacy", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kilo", "kimi-code", "kiro", "kiro-cli", "kiro-ide", "musecode", "opencode", "pi", "qwencode", "reasonix", "replit", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zed", "zoocode"], readonly ["aiassistant", "antigravity-cli", "augmentcode", "claudecode", "claudecode-legacy", "cline", "cursor", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "qwencode", "reasonix", "roo", "devin", "vibe", "warp", "zed", "zoocode"], readonly ["aiassistant", "amp", "antigravity-cli", "antigravity-ide", "antigravity-plugin", "augmentcode", "claudecode", "claudecode-plugin", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "kimi-code", "kilo", "kiro", "kiro-cli", "kiro-ide", "junie", "musecode", "opencode", "qwencode", "reasonix", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zed", "zoocode"], readonly ["agentsmd", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "claudecode-plugin", "claudecode-legacy", "cline", "codexcli", "copilot", "cursor", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "reasonix", "roo", "zoocode", "rovodev", "takt", "devin", "warp"], readonly ["kilo", "agentsmd", "antigravity-cli", "antigravity-ide", "antigravity-plugin", "augmentcode", "claudecode", "claudecode-plugin", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "devin", "factorydroid", "goose", "grokcli", "hermesagent", "kimi-code", "junie", "kiro", "kiro-cli", "kiro-ide", "opencode", "qwencode", "reasonix", "roo", "zoocode", "rovodev", "takt", "vibe"], readonly ["agentsmd", "agentsskills", "aiassistant", "amp", "antigravity-cli", "antigravity-ide", "antigravity-plugin", "augmentcode", "claudecode", "claudecode-plugin", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "kimi-code", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "musecode", "opencode", "pi", "qwencode", "reasonix", "replit", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zed", "zoocode"], readonly ["amp", "cline", "antigravity-cli", "antigravity-ide", "antigravity-plugin", "kilo", "cursor", "claudecode", "claudecode-plugin", "codexcli", "copilot", "copilotcli", "opencode", "pi", "factorydroid", "goose", "hermesagent", "kimi-code", "deepagents", "kiro", "kiro-cli", "kiro-ide", "devin", "augmentcode", "junie", "vibe", "qwencode", "reasonix", "grokcli"], readonly ["amp", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "cline", "codexcli", "copilot", "copilotcli", "cursor", "devin", "factorydroid", "goose", "grokcli", "hermesagent", "kimi-code", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "reasonix", "rovodev", "takt", "vibe", "warp", "zed", "zoocode"], readonly ["amp", "augmentcode", "cursor", "hermesagent", "rovodev", "takt"]];
|
|
17
|
+
declare const ALL_TOOL_TARGET_TUPLES: readonly [readonly ["agentsmd", "aiassistant", "amp", "antigravity-cli", "antigravity-ide", "antigravity-plugin", "augmentcode", "augmentcode-legacy", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kilo", "kimi-code", "kiro", "kiro-cli", "kiro-ide", "musecode", "opencode", "pi", "qwencode", "reasonix", "replit", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zcode", "zed", "zoocode"], readonly ["aiassistant", "antigravity-cli", "augmentcode", "claudecode", "claudecode-legacy", "cline", "cursor", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "qwencode", "reasonix", "roo", "devin", "vibe", "warp", "zed", "zoocode"], readonly ["aiassistant", "amp", "antigravity-cli", "antigravity-ide", "antigravity-plugin", "augmentcode", "claudecode", "claudecode-plugin", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "kimi-code", "kilo", "kiro", "kiro-cli", "kiro-ide", "junie", "musecode", "opencode", "qwencode", "reasonix", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zcode", "zed", "zoocode"], readonly ["agentsmd", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "claudecode-plugin", "claudecode-legacy", "cline", "codexcli", "copilot", "cursor", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "reasonix", "roo", "zoocode", "rovodev", "takt", "devin", "warp", "zcode"], readonly ["kilo", "agentsmd", "antigravity-cli", "antigravity-ide", "antigravity-plugin", "augmentcode", "claudecode", "claudecode-plugin", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "devin", "factorydroid", "goose", "grokcli", "hermesagent", "kimi-code", "junie", "kiro", "kiro-cli", "kiro-ide", "opencode", "qwencode", "reasonix", "roo", "zoocode", "rovodev", "takt", "vibe"], readonly ["agentsmd", "agentsskills", "aiassistant", "amp", "antigravity-cli", "antigravity-ide", "antigravity-plugin", "augmentcode", "claudecode", "claudecode-plugin", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "kimi-code", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "musecode", "opencode", "pi", "qwencode", "reasonix", "replit", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zcode", "zed", "zoocode"], readonly ["amp", "cline", "antigravity-cli", "antigravity-ide", "antigravity-plugin", "kilo", "cursor", "claudecode", "claudecode-plugin", "codexcli", "copilot", "copilotcli", "opencode", "pi", "factorydroid", "goose", "hermesagent", "kimi-code", "deepagents", "kiro", "kiro-cli", "kiro-ide", "devin", "augmentcode", "junie", "vibe", "qwencode", "reasonix", "grokcli"], readonly ["amp", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "devin", "factorydroid", "goose", "grokcli", "hermesagent", "kimi-code", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "reasonix", "roo", "rovodev", "takt", "vibe", "warp", "zed", "zoocode"], readonly ["amp", "augmentcode", "cursor", "factorydroid", "hermesagent", "rovodev", "takt"]];
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/types/tool-targets.d.ts
|
|
20
20
|
type AllToolTarget = (typeof ALL_TOOL_TARGET_TUPLES)[number][number];
|
|
@@ -60,6 +60,7 @@ declare const ToolTargetSchema: z.ZodMiniEnum<{
|
|
|
60
60
|
takt: "takt";
|
|
61
61
|
vibe: "vibe";
|
|
62
62
|
warp: "warp";
|
|
63
|
+
zcode: "zcode";
|
|
63
64
|
zed: "zed";
|
|
64
65
|
zoocode: "zoocode";
|
|
65
66
|
}>;
|
|
@@ -145,6 +146,40 @@ declare abstract class AiDir {
|
|
|
145
146
|
getOutputRoot(): string;
|
|
146
147
|
getRelativeDirPath(): string;
|
|
147
148
|
getDirName(): string;
|
|
149
|
+
/**
|
|
150
|
+
* True when {@link getDirPath} really is this instance's own directory, so
|
|
151
|
+
* everything under it belongs to this instance.
|
|
152
|
+
*
|
|
153
|
+
* The `--delete` orphan sweep uses this to decide whether it may claim the
|
|
154
|
+
* whole tree. Subclasses that flatten into a shared root instead of nesting
|
|
155
|
+
* under `dirName` (`TaktSkill`) return false here, because claiming that root
|
|
156
|
+
* as a tree would exempt every sibling in it from the sweep.
|
|
157
|
+
*
|
|
158
|
+
* Returning false also removes the instance from the sweep entirely: a
|
|
159
|
+
* directory it does not own must never be deleted on its behalf, and it has
|
|
160
|
+
* no directory of its own left to delete. Overriding `getDirPath()` for any
|
|
161
|
+
* other reason — normalizing a path, say — therefore silently disables
|
|
162
|
+
* deletion for that tool unless this method is kept in agreement with it.
|
|
163
|
+
*
|
|
164
|
+
* The comparison is structural rather than a name match on the last segment:
|
|
165
|
+
* a takt skill named after its own facet root (`.takt/facets/knowledge` and a
|
|
166
|
+
* skill called `knowledge`) ends on the same segment without ever nesting
|
|
167
|
+
* inside it.
|
|
168
|
+
*/
|
|
169
|
+
ownsDirTree(): boolean;
|
|
170
|
+
/**
|
|
171
|
+
* The one file this entry flattens into under the shared root, for a subclass
|
|
172
|
+
* that writes a flat `<name>.md` instead of owning a directory of its own
|
|
173
|
+
* ({@link ownsDirTree}). `undefined` for an entry that owns its directory —
|
|
174
|
+
* the tree is what stands for it then — and for one that carries no main
|
|
175
|
+
* file or names it through a path separator, since neither leaves a single
|
|
176
|
+
* file directly under the root to name.
|
|
177
|
+
*
|
|
178
|
+
* The `--delete` orphan sweep is keyed on this for the flattened tools: they
|
|
179
|
+
* contribute no directory of their own to sweep, so this file is the only
|
|
180
|
+
* thing a run can claim, or remove, on their behalf.
|
|
181
|
+
*/
|
|
182
|
+
getFlatFilePath(): string | undefined;
|
|
148
183
|
getDirPath(): string;
|
|
149
184
|
getMainFile(): {
|
|
150
185
|
name: string;
|
|
@@ -158,10 +193,87 @@ declare abstract class AiDir {
|
|
|
158
193
|
getRelativePathFromCwd(): string;
|
|
159
194
|
getGlobal(): boolean;
|
|
160
195
|
setMainFile(name: string, body: string, frontmatter?: Record<string, unknown>): void;
|
|
196
|
+
/**
|
|
197
|
+
* A nested repository inside a carried directory is the one exclusion worth
|
|
198
|
+
* reporting: unlike `.DS_Store`, it is there on purpose, and the tree it
|
|
199
|
+
* points at is simply not reproduced on generate. Only the top level is
|
|
200
|
+
* checked, which is where a submodule or a stray `git init` puts it, so the
|
|
201
|
+
* check costs one stat per directory rather than a second walk. `fileExists`
|
|
202
|
+
* is a bare `stat`, so it answers for a submodule pointer file and for a real
|
|
203
|
+
* `.git` directory alike.
|
|
204
|
+
*/
|
|
205
|
+
private static warnOnNestedGitDirectory;
|
|
206
|
+
/** Whether any segment of a relative path is dot-prefixed. */
|
|
207
|
+
private static hasHiddenSegment;
|
|
208
|
+
/**
|
|
209
|
+
* Whether the entry a path ends at is itself hidden, its ancestors aside.
|
|
210
|
+
* A shared skill tree usually lives under a dot-directory, so an ancestor
|
|
211
|
+
* says nothing about the file; its own name is what was chosen for it.
|
|
212
|
+
*/
|
|
213
|
+
private static hasHiddenName;
|
|
214
|
+
/**
|
|
215
|
+
* Drop the entries a skill directory must not carry.
|
|
216
|
+
*
|
|
217
|
+
* Three rules. `classifyNeverCarried` comes first, evaluated against the
|
|
218
|
+
* resolved real path as well as the literal one: names that are never skill
|
|
219
|
+
* content stay out however they are reached, so renaming a symbolic link
|
|
220
|
+
* does not turn `~/.aws` into content a skill carries. Next, a real path
|
|
221
|
+
* inside a kernel pseudo-filesystem is refused outright — that is process
|
|
222
|
+
* state, not a file.
|
|
223
|
+
*
|
|
224
|
+
* The third concerns hidden entries a symbolic link reaches outside the
|
|
225
|
+
* directory. Following symlinks out of a source tree is deliberate and
|
|
226
|
+
* documented — it is how a shared skill is referenced from several projects
|
|
227
|
+
* without being duplicated (issue #1707), and the trust boundary is the tree
|
|
228
|
+
* you point Rulesync at. Carrying hidden entries changes what that costs,
|
|
229
|
+
* though: one ordinary-looking link to a home directory would pull in every
|
|
230
|
+
* dotfile under it, and those are the entries with credential value. What
|
|
231
|
+
* decides is the name in the skill directory, not what the link resolves
|
|
232
|
+
* through: a named file keeps its documented behavior even when the target
|
|
233
|
+
* sits under a dot-directory such as `~/.dotfiles`, because somebody chose
|
|
234
|
+
* that name. What the link resolves *to* still counts at the end of the path,
|
|
235
|
+
* though — `notes.md` pointing at `~/.claude/.credentials.json` reaches a
|
|
236
|
+
* file nobody named for a skill — so a hidden final segment is refused on
|
|
237
|
+
* either side. Reaching outside is reported either way, since content from
|
|
238
|
+
* outside the tree is about to be copied into every enabled tool root.
|
|
239
|
+
*
|
|
240
|
+
* A path that cannot be resolved is kept: `realpath` fails on a broken link
|
|
241
|
+
* or a race, and neither is a reason to silently drop a file.
|
|
242
|
+
*/
|
|
243
|
+
/** Report what a carried directory left out, once both walks have had their say. */
|
|
244
|
+
private static warnOnRefusedCarriedFiles;
|
|
245
|
+
private static filterCarriedFiles;
|
|
246
|
+
/**
|
|
247
|
+
* Report what the walk had to leave behind, so a skill that silently lost
|
|
248
|
+
* files says so rather than generating a directory that is quietly short.
|
|
249
|
+
*/
|
|
250
|
+
private static warnOnCarriedWalkLimits;
|
|
251
|
+
/**
|
|
252
|
+
* Walk the directory once more with the hidden routes pruned, and take the
|
|
253
|
+
* files the first walk had to leave behind because the route that reached
|
|
254
|
+
* them ran through a hidden directory. This can only add files, and only ones
|
|
255
|
+
* a fully named route reaches.
|
|
256
|
+
*/
|
|
257
|
+
private static recoverCarriedFilesFromNamedRoutes;
|
|
161
258
|
/**
|
|
162
259
|
* Recursively collects all files from a directory, excluding the specified main file.
|
|
163
260
|
* This is a common utility for loading additional files alongside the main file.
|
|
164
261
|
*
|
|
262
|
+
* Hidden entries are included. The directories this walks are skill trees,
|
|
263
|
+
* whose specification says a skill directory "may contain any files and
|
|
264
|
+
* directories beyond the required `SKILL.md`" — a `.env.example` beside the
|
|
265
|
+
* scripts that read it is content, not noise, and dropping it silently on
|
|
266
|
+
* both import and generate loses part of the skill. What is left out is the
|
|
267
|
+
* set of entries that are never skill content — a nested repository's `.git`,
|
|
268
|
+
* the macOS Finder's `.DS_Store`, credential stores, build and cache trees —
|
|
269
|
+
* as decided by `classifyNeverCarried`. Whole directories from that set are
|
|
270
|
+
* pruned during the walk too, so it never descends into them at all.
|
|
271
|
+
*
|
|
272
|
+
* The walk is bounded and cycle-aware — see `walkCarriedFiles` — because the
|
|
273
|
+
* tree may contain symbolic links that somebody else chose.
|
|
274
|
+
*
|
|
275
|
+
* @see https://agentskills.io/specification
|
|
276
|
+
*
|
|
165
277
|
* @param outputRoot - The base directory path
|
|
166
278
|
* @param relativeDirPath - The relative path to the directory containing the skill
|
|
167
279
|
* @param dirName - The name of the directory
|
|
@@ -218,6 +330,7 @@ declare const RulesyncSkillFrontmatterSchemaInternal: z.ZodMiniObject<{
|
|
|
218
330
|
takt: "takt";
|
|
219
331
|
vibe: "vibe";
|
|
220
332
|
warp: "warp";
|
|
333
|
+
zcode: "zcode";
|
|
221
334
|
zed: "zed";
|
|
222
335
|
zoocode: "zoocode";
|
|
223
336
|
}>>>;
|
|
@@ -634,7 +747,19 @@ type GenerateResult = {
|
|
|
634
747
|
activationPaths: string[];
|
|
635
748
|
skills: RulesyncSkill[];
|
|
636
749
|
hasDiff: boolean;
|
|
750
|
+
/**
|
|
751
|
+
* True when at least one `.rulesync/` source file could not be read. The
|
|
752
|
+
* counts above cannot express it: a feature whose source failed to load
|
|
753
|
+
* reports zero written files, exactly like a feature that had nothing to do.
|
|
754
|
+
*/
|
|
755
|
+
sourceLoadFailed: boolean;
|
|
756
|
+
/**
|
|
757
|
+
* The features whose source could not be read, in run order. Empty exactly
|
|
758
|
+
* when `sourceLoadFailed` is false.
|
|
759
|
+
*/
|
|
760
|
+
sourceLoadFailedFeatures: GenerationStepId[];
|
|
637
761
|
};
|
|
762
|
+
type GenerationStepId = "ignore" | "mcp" | "commands" | "subagents" | "skills" | "hooks" | "permissions" | "checks" | "rules";
|
|
638
763
|
//#endregion
|
|
639
764
|
//#region src/lib/import.d.ts
|
|
640
765
|
type ImportResult = {
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/types/features.ts","../src/types/tool-target-tuples.ts","../src/types/tool-targets.ts","../src/lib/convert.ts","../src/types/ai-dir.ts","../src/features/skills/rulesync-skill.ts","../src/lib/generate.ts","../src/lib/import.ts","../src/index.ts"],"mappings":";;cAaa;cA+BP,eAAa,EAAA,uBAAA,EAAA;;;;;;;;;IAAoE,EAAA;KAE3E,UAAU,EAAE,aAAa;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/types/features.ts","../src/types/tool-target-tuples.ts","../src/types/tool-targets.ts","../src/lib/convert.ts","../src/types/ai-dir.ts","../src/features/skills/rulesync-skill.ts","../src/lib/generate.ts","../src/lib/import.ts","../src/index.ts"],"mappings":";;cAaa;cA+BP,eAAa,EAAA,uBAAA,EAAA;;;;;;;;;IAAoE,EAAA;KAE3E,UAAU,EAAE,aAAa;;;cCwQxB;;;KC5SR,wBAAwB;cAEhB,4BAA4B,kBAAkB;cAM9C,kBAAgB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEjB,aAAa,EAAE,aAAa;;;KCH5B;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;KCTU;EAEN;EACA;;EAGA;EACA,OAAO;;KAGD;EACV;EACA,YAAY;;;;;;;;EAQZ;;KAmnBU;EACV;EACA;EACA;EACA;IACE;IACA;IACA,cAAc;;EAEhB,aAAa;EACb;;KAGU,qBAAqB,KAC/B;uBAIoB;;;;qBAID;;;;qBAKA;;;;qBAKA;;;;YAKT;IACR;IACA;IACA,cAAc;;;;;YAMN,YAAY;;;;qBAKH;EAEnB,cACE,YACA,iBACA,SACA,UACA,YACA,UACC;SAyBU,QAAQ,SAAS,qBAAqB,QAAQ;EAI3D;EAIA;EAIA;;;;;;;;;;;;;;;;;;;;;EAwBA;;;;;;;;;;;;;EAgBA;EAqBA;EAqBA;IAEM;IACA;IACA,cAAc;;EAMpB,iBAAiB;;;;EAOjB;EAIA;EAIA,YAAY,cAAc,cAAc,cAAc;;;;;;;;;;iBAajC;;iBAWN;;;;;;iBASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkCA;iBA8CM;;;;;iBA6GN;;;;;;;iBAgDM;;;;;;;;;;;;;;;;;;;;;;;;;;mBA+FE,kBACrB,oBACA,yBACA,iBACA,0BACC,QAAQ;WAmGF,YAAY;;;;cCpxCjB,wCAAsC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmS1C,EAAA,KAAA;KAMU;EACV;EACA;EACA;EACA;EACA;EACA;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA,QAAQ;IACR;IACA;IACA;IACA;IACA;IACA;IACA,yBAAyB;IACzB,WAAW;;EAEb;IACE;IACA;;EAEF;IACE;IACA;MACE;MACA;MACA;MACA;MACA;MACA;;IAEF;MACE;;IAEF;MACE,QAAQ;QACN;QACA;QACA;QACA;QACA;;;;EAIN;IACE;IACA;IACA,yBAAyB;IACzB,WAAW;;EAEb;IACE;;EAEF;IACE;IACA,yBAAyB;IACzB,WAAW;;EAEb;IACE;IACA;IACA,yBAAyB;IACzB,WAAW;;EAEb;IACE;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA,yBAAyB;IACzB,WAAW;;EAEb;IACE;;EAEF;IACE;IACA;IACA,yBAAyB;IACzB,WAAW;;EAEb,MAAM;EACN,QAAQ;EACR,MAAM;EACN;IACE;IACA;IACA;IACA;IACA;IACA,cAAc;IACd;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA,QAAQ;IACR;IACA;;EAEF;IACE;IACA;IACA,yBAAyB;IACzB,WAAW;;EAEb;IACE;IACA;IACA;IACA,WAAW;;EAEb;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;;EAEF;IACE;IACA,yBAAyB;IACzB,WAAW;IACX;;EAEF,cAAc;EACd;IACE;IACA,yBAAyB;IACzB,WAAW;IACX;IACA;;EAEF;IACE;IACA;;;KAKQ,2BAA2B,EAAE,aAAa;KAO1C;EACV;EACA;EACA;EACA,aAAa;EACb;EACA,aAAa;EACb;EACA;;KAGU;EACV;;KAGU;EACV;EACA;EACA;EACA;;;;;;cAOW,sBAAsB;EACjC,cACE,YACA,iBACA,SACA,aACA,MACA,YACA,UACA,UACC;SAsBI,oBAAoB;EAU3B,kBAAkB;EAQlB;EAIA,YAAY;SAcC,UACX,YACA,iBACA,SACA,UACC,6BAA6B,QAAQ;;;;KCtjB9B;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR;;;;;;EAMA;;;;;EAKA,0BAA0B;;KA6XhB;;;KCvZA;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;KC/CG;EACH;EACA;EACA;EACA;;KAGU,kBAAkB;EAC5B,UAAU;EACV,WAAW;EACX;;;;;;;;;;;;;EAaA;;;;;;;;EAQA;EACA;EACA;EACA;EACA;EACA;EACA;;KAGU,gBAAgB;EAC1B,QAAQ;EACR,WAAW;;KAGD,iBAAiB;EAC3B,MAAM;EACN,IAAI;EACJ,WAAW;EACX;;iBAGoB,SAAS,UAAS,kBAAuB,QAAQ;iBAyBjD,eAAe,SAAS,gBAAgB,QAAQ;iBAehD,gBAAgB,SAAS,iBAAiB,QAAQ"}
|
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ declare const FeatureSchema: z.ZodMiniUnion<readonly [z.ZodMiniEnum<{
|
|
|
14
14
|
type Feature = z.infer<typeof FeatureSchema>;
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/types/tool-target-tuples.d.ts
|
|
17
|
-
declare const ALL_TOOL_TARGET_TUPLES: readonly [readonly ["agentsmd", "aiassistant", "amp", "antigravity-cli", "antigravity-ide", "antigravity-plugin", "augmentcode", "augmentcode-legacy", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kilo", "kimi-code", "kiro", "kiro-cli", "kiro-ide", "musecode", "opencode", "pi", "qwencode", "reasonix", "replit", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zed", "zoocode"], readonly ["aiassistant", "antigravity-cli", "augmentcode", "claudecode", "claudecode-legacy", "cline", "cursor", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "qwencode", "reasonix", "roo", "devin", "vibe", "warp", "zed", "zoocode"], readonly ["aiassistant", "amp", "antigravity-cli", "antigravity-ide", "antigravity-plugin", "augmentcode", "claudecode", "claudecode-plugin", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "kimi-code", "kilo", "kiro", "kiro-cli", "kiro-ide", "junie", "musecode", "opencode", "qwencode", "reasonix", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zed", "zoocode"], readonly ["agentsmd", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "claudecode-plugin", "claudecode-legacy", "cline", "codexcli", "copilot", "cursor", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "reasonix", "roo", "zoocode", "rovodev", "takt", "devin", "warp"], readonly ["kilo", "agentsmd", "antigravity-cli", "antigravity-ide", "antigravity-plugin", "augmentcode", "claudecode", "claudecode-plugin", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "devin", "factorydroid", "goose", "grokcli", "hermesagent", "kimi-code", "junie", "kiro", "kiro-cli", "kiro-ide", "opencode", "qwencode", "reasonix", "roo", "zoocode", "rovodev", "takt", "vibe"], readonly ["agentsmd", "agentsskills", "aiassistant", "amp", "antigravity-cli", "antigravity-ide", "antigravity-plugin", "augmentcode", "claudecode", "claudecode-plugin", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "kimi-code", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "musecode", "opencode", "pi", "qwencode", "reasonix", "replit", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zed", "zoocode"], readonly ["amp", "cline", "antigravity-cli", "antigravity-ide", "antigravity-plugin", "kilo", "cursor", "claudecode", "claudecode-plugin", "codexcli", "copilot", "copilotcli", "opencode", "pi", "factorydroid", "goose", "hermesagent", "kimi-code", "deepagents", "kiro", "kiro-cli", "kiro-ide", "devin", "augmentcode", "junie", "vibe", "qwencode", "reasonix", "grokcli"], readonly ["amp", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "cline", "codexcli", "copilot", "copilotcli", "cursor", "devin", "factorydroid", "goose", "grokcli", "hermesagent", "kimi-code", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "reasonix", "rovodev", "takt", "vibe", "warp", "zed", "zoocode"], readonly ["amp", "augmentcode", "cursor", "hermesagent", "rovodev", "takt"]];
|
|
17
|
+
declare const ALL_TOOL_TARGET_TUPLES: readonly [readonly ["agentsmd", "aiassistant", "amp", "antigravity-cli", "antigravity-ide", "antigravity-plugin", "augmentcode", "augmentcode-legacy", "claudecode", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kilo", "kimi-code", "kiro", "kiro-cli", "kiro-ide", "musecode", "opencode", "pi", "qwencode", "reasonix", "replit", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zcode", "zed", "zoocode"], readonly ["aiassistant", "antigravity-cli", "augmentcode", "claudecode", "claudecode-legacy", "cline", "cursor", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "qwencode", "reasonix", "roo", "devin", "vibe", "warp", "zed", "zoocode"], readonly ["aiassistant", "amp", "antigravity-cli", "antigravity-ide", "antigravity-plugin", "augmentcode", "claudecode", "claudecode-plugin", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "kimi-code", "kilo", "kiro", "kiro-cli", "kiro-ide", "junie", "musecode", "opencode", "qwencode", "reasonix", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zcode", "zed", "zoocode"], readonly ["agentsmd", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "claudecode-plugin", "claudecode-legacy", "cline", "codexcli", "copilot", "cursor", "factorydroid", "goose", "grokcli", "hermesagent", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "reasonix", "roo", "zoocode", "rovodev", "takt", "devin", "warp", "zcode"], readonly ["kilo", "agentsmd", "antigravity-cli", "antigravity-ide", "antigravity-plugin", "augmentcode", "claudecode", "claudecode-plugin", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "devin", "factorydroid", "goose", "grokcli", "hermesagent", "kimi-code", "junie", "kiro", "kiro-cli", "kiro-ide", "opencode", "qwencode", "reasonix", "roo", "zoocode", "rovodev", "takt", "vibe"], readonly ["agentsmd", "agentsskills", "aiassistant", "amp", "antigravity-cli", "antigravity-ide", "antigravity-plugin", "augmentcode", "claudecode", "claudecode-plugin", "claudecode-legacy", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "factorydroid", "goose", "grokcli", "hermesagent", "kimi-code", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "musecode", "opencode", "pi", "qwencode", "reasonix", "replit", "roo", "rovodev", "takt", "vibe", "warp", "devin", "zcode", "zed", "zoocode"], readonly ["amp", "cline", "antigravity-cli", "antigravity-ide", "antigravity-plugin", "kilo", "cursor", "claudecode", "claudecode-plugin", "codexcli", "copilot", "copilotcli", "opencode", "pi", "factorydroid", "goose", "hermesagent", "kimi-code", "deepagents", "kiro", "kiro-cli", "kiro-ide", "devin", "augmentcode", "junie", "vibe", "qwencode", "reasonix", "grokcli"], readonly ["amp", "antigravity-cli", "antigravity-ide", "augmentcode", "claudecode", "cline", "codexcli", "copilot", "copilotcli", "cursor", "deepagents", "devin", "factorydroid", "goose", "grokcli", "hermesagent", "kimi-code", "junie", "kilo", "kiro", "kiro-cli", "kiro-ide", "opencode", "pi", "qwencode", "reasonix", "roo", "rovodev", "takt", "vibe", "warp", "zed", "zoocode"], readonly ["amp", "augmentcode", "cursor", "factorydroid", "hermesagent", "rovodev", "takt"]];
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/types/tool-targets.d.ts
|
|
20
20
|
type AllToolTarget = (typeof ALL_TOOL_TARGET_TUPLES)[number][number];
|
|
@@ -60,6 +60,7 @@ declare const ToolTargetSchema: z.ZodMiniEnum<{
|
|
|
60
60
|
takt: "takt";
|
|
61
61
|
vibe: "vibe";
|
|
62
62
|
warp: "warp";
|
|
63
|
+
zcode: "zcode";
|
|
63
64
|
zed: "zed";
|
|
64
65
|
zoocode: "zoocode";
|
|
65
66
|
}>;
|
|
@@ -145,6 +146,40 @@ declare abstract class AiDir {
|
|
|
145
146
|
getOutputRoot(): string;
|
|
146
147
|
getRelativeDirPath(): string;
|
|
147
148
|
getDirName(): string;
|
|
149
|
+
/**
|
|
150
|
+
* True when {@link getDirPath} really is this instance's own directory, so
|
|
151
|
+
* everything under it belongs to this instance.
|
|
152
|
+
*
|
|
153
|
+
* The `--delete` orphan sweep uses this to decide whether it may claim the
|
|
154
|
+
* whole tree. Subclasses that flatten into a shared root instead of nesting
|
|
155
|
+
* under `dirName` (`TaktSkill`) return false here, because claiming that root
|
|
156
|
+
* as a tree would exempt every sibling in it from the sweep.
|
|
157
|
+
*
|
|
158
|
+
* Returning false also removes the instance from the sweep entirely: a
|
|
159
|
+
* directory it does not own must never be deleted on its behalf, and it has
|
|
160
|
+
* no directory of its own left to delete. Overriding `getDirPath()` for any
|
|
161
|
+
* other reason — normalizing a path, say — therefore silently disables
|
|
162
|
+
* deletion for that tool unless this method is kept in agreement with it.
|
|
163
|
+
*
|
|
164
|
+
* The comparison is structural rather than a name match on the last segment:
|
|
165
|
+
* a takt skill named after its own facet root (`.takt/facets/knowledge` and a
|
|
166
|
+
* skill called `knowledge`) ends on the same segment without ever nesting
|
|
167
|
+
* inside it.
|
|
168
|
+
*/
|
|
169
|
+
ownsDirTree(): boolean;
|
|
170
|
+
/**
|
|
171
|
+
* The one file this entry flattens into under the shared root, for a subclass
|
|
172
|
+
* that writes a flat `<name>.md` instead of owning a directory of its own
|
|
173
|
+
* ({@link ownsDirTree}). `undefined` for an entry that owns its directory —
|
|
174
|
+
* the tree is what stands for it then — and for one that carries no main
|
|
175
|
+
* file or names it through a path separator, since neither leaves a single
|
|
176
|
+
* file directly under the root to name.
|
|
177
|
+
*
|
|
178
|
+
* The `--delete` orphan sweep is keyed on this for the flattened tools: they
|
|
179
|
+
* contribute no directory of their own to sweep, so this file is the only
|
|
180
|
+
* thing a run can claim, or remove, on their behalf.
|
|
181
|
+
*/
|
|
182
|
+
getFlatFilePath(): string | undefined;
|
|
148
183
|
getDirPath(): string;
|
|
149
184
|
getMainFile(): {
|
|
150
185
|
name: string;
|
|
@@ -158,10 +193,87 @@ declare abstract class AiDir {
|
|
|
158
193
|
getRelativePathFromCwd(): string;
|
|
159
194
|
getGlobal(): boolean;
|
|
160
195
|
setMainFile(name: string, body: string, frontmatter?: Record<string, unknown>): void;
|
|
196
|
+
/**
|
|
197
|
+
* A nested repository inside a carried directory is the one exclusion worth
|
|
198
|
+
* reporting: unlike `.DS_Store`, it is there on purpose, and the tree it
|
|
199
|
+
* points at is simply not reproduced on generate. Only the top level is
|
|
200
|
+
* checked, which is where a submodule or a stray `git init` puts it, so the
|
|
201
|
+
* check costs one stat per directory rather than a second walk. `fileExists`
|
|
202
|
+
* is a bare `stat`, so it answers for a submodule pointer file and for a real
|
|
203
|
+
* `.git` directory alike.
|
|
204
|
+
*/
|
|
205
|
+
private static warnOnNestedGitDirectory;
|
|
206
|
+
/** Whether any segment of a relative path is dot-prefixed. */
|
|
207
|
+
private static hasHiddenSegment;
|
|
208
|
+
/**
|
|
209
|
+
* Whether the entry a path ends at is itself hidden, its ancestors aside.
|
|
210
|
+
* A shared skill tree usually lives under a dot-directory, so an ancestor
|
|
211
|
+
* says nothing about the file; its own name is what was chosen for it.
|
|
212
|
+
*/
|
|
213
|
+
private static hasHiddenName;
|
|
214
|
+
/**
|
|
215
|
+
* Drop the entries a skill directory must not carry.
|
|
216
|
+
*
|
|
217
|
+
* Three rules. `classifyNeverCarried` comes first, evaluated against the
|
|
218
|
+
* resolved real path as well as the literal one: names that are never skill
|
|
219
|
+
* content stay out however they are reached, so renaming a symbolic link
|
|
220
|
+
* does not turn `~/.aws` into content a skill carries. Next, a real path
|
|
221
|
+
* inside a kernel pseudo-filesystem is refused outright — that is process
|
|
222
|
+
* state, not a file.
|
|
223
|
+
*
|
|
224
|
+
* The third concerns hidden entries a symbolic link reaches outside the
|
|
225
|
+
* directory. Following symlinks out of a source tree is deliberate and
|
|
226
|
+
* documented — it is how a shared skill is referenced from several projects
|
|
227
|
+
* without being duplicated (issue #1707), and the trust boundary is the tree
|
|
228
|
+
* you point Rulesync at. Carrying hidden entries changes what that costs,
|
|
229
|
+
* though: one ordinary-looking link to a home directory would pull in every
|
|
230
|
+
* dotfile under it, and those are the entries with credential value. What
|
|
231
|
+
* decides is the name in the skill directory, not what the link resolves
|
|
232
|
+
* through: a named file keeps its documented behavior even when the target
|
|
233
|
+
* sits under a dot-directory such as `~/.dotfiles`, because somebody chose
|
|
234
|
+
* that name. What the link resolves *to* still counts at the end of the path,
|
|
235
|
+
* though — `notes.md` pointing at `~/.claude/.credentials.json` reaches a
|
|
236
|
+
* file nobody named for a skill — so a hidden final segment is refused on
|
|
237
|
+
* either side. Reaching outside is reported either way, since content from
|
|
238
|
+
* outside the tree is about to be copied into every enabled tool root.
|
|
239
|
+
*
|
|
240
|
+
* A path that cannot be resolved is kept: `realpath` fails on a broken link
|
|
241
|
+
* or a race, and neither is a reason to silently drop a file.
|
|
242
|
+
*/
|
|
243
|
+
/** Report what a carried directory left out, once both walks have had their say. */
|
|
244
|
+
private static warnOnRefusedCarriedFiles;
|
|
245
|
+
private static filterCarriedFiles;
|
|
246
|
+
/**
|
|
247
|
+
* Report what the walk had to leave behind, so a skill that silently lost
|
|
248
|
+
* files says so rather than generating a directory that is quietly short.
|
|
249
|
+
*/
|
|
250
|
+
private static warnOnCarriedWalkLimits;
|
|
251
|
+
/**
|
|
252
|
+
* Walk the directory once more with the hidden routes pruned, and take the
|
|
253
|
+
* files the first walk had to leave behind because the route that reached
|
|
254
|
+
* them ran through a hidden directory. This can only add files, and only ones
|
|
255
|
+
* a fully named route reaches.
|
|
256
|
+
*/
|
|
257
|
+
private static recoverCarriedFilesFromNamedRoutes;
|
|
161
258
|
/**
|
|
162
259
|
* Recursively collects all files from a directory, excluding the specified main file.
|
|
163
260
|
* This is a common utility for loading additional files alongside the main file.
|
|
164
261
|
*
|
|
262
|
+
* Hidden entries are included. The directories this walks are skill trees,
|
|
263
|
+
* whose specification says a skill directory "may contain any files and
|
|
264
|
+
* directories beyond the required `SKILL.md`" — a `.env.example` beside the
|
|
265
|
+
* scripts that read it is content, not noise, and dropping it silently on
|
|
266
|
+
* both import and generate loses part of the skill. What is left out is the
|
|
267
|
+
* set of entries that are never skill content — a nested repository's `.git`,
|
|
268
|
+
* the macOS Finder's `.DS_Store`, credential stores, build and cache trees —
|
|
269
|
+
* as decided by `classifyNeverCarried`. Whole directories from that set are
|
|
270
|
+
* pruned during the walk too, so it never descends into them at all.
|
|
271
|
+
*
|
|
272
|
+
* The walk is bounded and cycle-aware — see `walkCarriedFiles` — because the
|
|
273
|
+
* tree may contain symbolic links that somebody else chose.
|
|
274
|
+
*
|
|
275
|
+
* @see https://agentskills.io/specification
|
|
276
|
+
*
|
|
165
277
|
* @param outputRoot - The base directory path
|
|
166
278
|
* @param relativeDirPath - The relative path to the directory containing the skill
|
|
167
279
|
* @param dirName - The name of the directory
|
|
@@ -218,6 +330,7 @@ declare const RulesyncSkillFrontmatterSchemaInternal: z.ZodMiniObject<{
|
|
|
218
330
|
takt: "takt";
|
|
219
331
|
vibe: "vibe";
|
|
220
332
|
warp: "warp";
|
|
333
|
+
zcode: "zcode";
|
|
221
334
|
zed: "zed";
|
|
222
335
|
zoocode: "zoocode";
|
|
223
336
|
}>>>;
|
|
@@ -634,7 +747,19 @@ type GenerateResult = {
|
|
|
634
747
|
activationPaths: string[];
|
|
635
748
|
skills: RulesyncSkill[];
|
|
636
749
|
hasDiff: boolean;
|
|
750
|
+
/**
|
|
751
|
+
* True when at least one `.rulesync/` source file could not be read. The
|
|
752
|
+
* counts above cannot express it: a feature whose source failed to load
|
|
753
|
+
* reports zero written files, exactly like a feature that had nothing to do.
|
|
754
|
+
*/
|
|
755
|
+
sourceLoadFailed: boolean;
|
|
756
|
+
/**
|
|
757
|
+
* The features whose source could not be read, in run order. Empty exactly
|
|
758
|
+
* when `sourceLoadFailed` is false.
|
|
759
|
+
*/
|
|
760
|
+
sourceLoadFailedFeatures: GenerationStepId[];
|
|
637
761
|
};
|
|
762
|
+
type GenerationStepId = "ignore" | "mcp" | "commands" | "subagents" | "skills" | "hooks" | "permissions" | "checks" | "rules";
|
|
638
763
|
//#endregion
|
|
639
764
|
//#region src/lib/import.d.ts
|
|
640
765
|
type ImportResult = {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types/features.ts","../src/types/tool-target-tuples.ts","../src/types/tool-targets.ts","../src/lib/convert.ts","../src/types/ai-dir.ts","../src/features/skills/rulesync-skill.ts","../src/lib/generate.ts","../src/lib/import.ts","../src/index.ts"],"mappings":";;cAaa;cA+BP,eAAa,EAAA,uBAAA,EAAA;;;;;;;;;IAAoE,EAAA;KAE3E,UAAU,EAAE,aAAa;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types/features.ts","../src/types/tool-target-tuples.ts","../src/types/tool-targets.ts","../src/lib/convert.ts","../src/types/ai-dir.ts","../src/features/skills/rulesync-skill.ts","../src/lib/generate.ts","../src/lib/import.ts","../src/index.ts"],"mappings":";;cAaa;cA+BP,eAAa,EAAA,uBAAA,EAAA;;;;;;;;;IAAoE,EAAA;KAE3E,UAAU,EAAE,aAAa;;;cCwQxB;;;KC5SR,wBAAwB;cAEhB,4BAA4B,kBAAkB;cAM9C,kBAAgB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEjB,aAAa,EAAE,aAAa;;;KCH5B;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;KCTU;EAEN;EACA;;EAGA;EACA,OAAO;;KAGD;EACV;EACA,YAAY;;;;;;;;EAQZ;;KAmnBU;EACV;EACA;EACA;EACA;IACE;IACA;IACA,cAAc;;EAEhB,aAAa;EACb;;KAGU,qBAAqB,KAC/B;uBAIoB;;;;qBAID;;;;qBAKA;;;;qBAKA;;;;YAKT;IACR;IACA;IACA,cAAc;;;;;YAMN,YAAY;;;;qBAKH;EAEnB,cACE,YACA,iBACA,SACA,UACA,YACA,UACC;SAyBU,QAAQ,SAAS,qBAAqB,QAAQ;EAI3D;EAIA;EAIA;;;;;;;;;;;;;;;;;;;;;EAwBA;;;;;;;;;;;;;EAgBA;EAqBA;EAqBA;IAEM;IACA;IACA,cAAc;;EAMpB,iBAAiB;;;;EAOjB;EAIA;EAIA,YAAY,cAAc,cAAc,cAAc;;;;;;;;;;iBAajC;;iBAWN;;;;;;iBASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkCA;iBA8CM;;;;;iBA6GN;;;;;;;iBAgDM;;;;;;;;;;;;;;;;;;;;;;;;;;mBA+FE,kBACrB,oBACA,yBACA,iBACA,0BACC,QAAQ;WAmGF,YAAY;;;;cCpxCjB,wCAAsC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmS1C,EAAA,KAAA;KAMU;EACV;EACA;EACA;EACA;EACA;EACA;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA,QAAQ;IACR;IACA;IACA;IACA;IACA;IACA;IACA,yBAAyB;IACzB,WAAW;;EAEb;IACE;IACA;;EAEF;IACE;IACA;MACE;MACA;MACA;MACA;MACA;MACA;;IAEF;MACE;;IAEF;MACE,QAAQ;QACN;QACA;QACA;QACA;QACA;;;;EAIN;IACE;IACA;IACA,yBAAyB;IACzB,WAAW;;EAEb;IACE;;EAEF;IACE;IACA,yBAAyB;IACzB,WAAW;;EAEb;IACE;IACA;IACA,yBAAyB;IACzB,WAAW;;EAEb;IACE;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA,yBAAyB;IACzB,WAAW;;EAEb;IACE;;EAEF;IACE;IACA;IACA,yBAAyB;IACzB,WAAW;;EAEb,MAAM;EACN,QAAQ;EACR,MAAM;EACN;IACE;IACA;IACA;IACA;IACA;IACA,cAAc;IACd;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;IACA,QAAQ;IACR;IACA;;EAEF;IACE;IACA;IACA,yBAAyB;IACzB,WAAW;;EAEb;IACE;IACA;IACA;IACA,WAAW;;EAEb;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;;EAEF;IACE;IACA,yBAAyB;IACzB,WAAW;IACX;;EAEF,cAAc;EACd;IACE;IACA,yBAAyB;IACzB,WAAW;IACX;IACA;;EAEF;IACE;IACA;;;KAKQ,2BAA2B,EAAE,aAAa;KAO1C;EACV;EACA;EACA;EACA,aAAa;EACb;EACA,aAAa;EACb;EACA;;KAGU;EACV;;KAGU;EACV;EACA;EACA;EACA;;;;;;cAOW,sBAAsB;EACjC,cACE,YACA,iBACA,SACA,aACA,MACA,YACA,UACA,UACC;SAsBI,oBAAoB;EAU3B,kBAAkB;EAQlB;EAIA,YAAY;SAcC,UACX,YACA,iBACA,SACA,UACC,6BAA6B,QAAQ;;;;KCtjB9B;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR;;;;;;EAMA;;;;;EAKA,0BAA0B;;KA6XhB;;;KCvZA;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;KC/CG;EACH;EACA;EACA;EACA;;KAGU,kBAAkB;EAC5B,UAAU;EACV,WAAW;EACX;;;;;;;;;;;;;EAaA;;;;;;;;EAQA;EACA;EACA;EACA;EACA;EACA;EACA;;KAGU,gBAAgB;EAC1B,QAAQ;EACR,WAAW;;KAGD,iBAAiB;EAC3B,MAAM;EACN,IAAI;EACJ,WAAW;EACX;;iBAGoB,SAAS,UAAS,kBAAuB,QAAQ;iBAyBjD,eAAe,SAAS,gBAAgB,QAAQ;iBAehD,gBAAgB,SAAS,iBAAiB,QAAQ"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Kt as ALL_TOOL_TARGETS, Tn as ALL_FEATURES, ct as ConsoleLogger, et as ConfigResolver, i as inspectInputRoots, o as convertFromTool$1, r as generate$1, t as importFromTool$1 } from "./import-BKnAc4rT.js";
|
|
2
2
|
//#region src/index.ts
|
|
3
3
|
async function generate(options = {}) {
|
|
4
4
|
const { silent = true, verbose = false, ...rest } = options;
|