rulesync 7.10.0 → 7.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{chunk-57CDMFYZ.js → chunk-WAWBAZPA.js} +900 -640
- package/dist/cli/index.cjs +1199 -931
- package/dist/cli/index.js +17 -9
- package/dist/index.cjs +925 -665
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
removeTempDirectory,
|
|
61
61
|
stringifyFrontmatter,
|
|
62
62
|
writeFileContent
|
|
63
|
-
} from "../chunk-
|
|
63
|
+
} from "../chunk-WAWBAZPA.js";
|
|
64
64
|
|
|
65
65
|
// src/cli/index.ts
|
|
66
66
|
import { Command } from "commander";
|
|
@@ -1142,7 +1142,7 @@ var RULESYNC_HEADER = "# Generated by Rulesync";
|
|
|
1142
1142
|
var LEGACY_RULESYNC_HEADER = "# Generated by rulesync - AI tool configuration files";
|
|
1143
1143
|
var RULESYNC_IGNORE_ENTRIES = [
|
|
1144
1144
|
// Rulesync curated (fetched) skills
|
|
1145
|
-
|
|
1145
|
+
`${RULESYNC_CURATED_SKILLS_RELATIVE_DIR_PATH}/`,
|
|
1146
1146
|
// AGENTS.md
|
|
1147
1147
|
"**/AGENTS.md",
|
|
1148
1148
|
"**/.agents/",
|
|
@@ -1200,6 +1200,7 @@ var RULESYNC_IGNORE_ENTRIES = [
|
|
|
1200
1200
|
"**/.github/prompts/",
|
|
1201
1201
|
"**/.github/agents/",
|
|
1202
1202
|
"**/.github/skills/",
|
|
1203
|
+
"**/.github/hooks/",
|
|
1203
1204
|
"**/.vscode/mcp.json",
|
|
1204
1205
|
// Junie
|
|
1205
1206
|
"**/.junie/guidelines.md",
|
|
@@ -1707,15 +1708,22 @@ function normalizeSourceKey(source) {
|
|
|
1707
1708
|
"https://www.github.com/",
|
|
1708
1709
|
"https://github.com/",
|
|
1709
1710
|
"http://www.github.com/",
|
|
1710
|
-
"http://github.com/"
|
|
1711
|
+
"http://github.com/",
|
|
1712
|
+
"https://www.gitlab.com/",
|
|
1713
|
+
"https://gitlab.com/",
|
|
1714
|
+
"http://www.gitlab.com/",
|
|
1715
|
+
"http://gitlab.com/"
|
|
1711
1716
|
]) {
|
|
1712
1717
|
if (key.toLowerCase().startsWith(prefix)) {
|
|
1713
1718
|
key = key.substring(prefix.length);
|
|
1714
1719
|
break;
|
|
1715
1720
|
}
|
|
1716
1721
|
}
|
|
1717
|
-
|
|
1718
|
-
|
|
1722
|
+
for (const provider of ["github:", "gitlab:"]) {
|
|
1723
|
+
if (key.startsWith(provider)) {
|
|
1724
|
+
key = key.substring(provider.length);
|
|
1725
|
+
break;
|
|
1726
|
+
}
|
|
1719
1727
|
}
|
|
1720
1728
|
key = key.replace(/\/+$/, "");
|
|
1721
1729
|
key = key.replace(/\.git$/, "");
|
|
@@ -1799,10 +1807,9 @@ async function resolveAndFetchSources(params) {
|
|
|
1799
1807
|
allFetchedSkillNames.add(name);
|
|
1800
1808
|
}
|
|
1801
1809
|
} catch (error) {
|
|
1810
|
+
logger.error(`Failed to fetch source "${sourceEntry.source}": ${formatError(error)}`);
|
|
1802
1811
|
if (error instanceof GitHubClientError) {
|
|
1803
1812
|
logGitHubAuthHints(error);
|
|
1804
|
-
} else {
|
|
1805
|
-
logger.error(`Failed to fetch source "${sourceEntry.source}": ${formatError(error)}`);
|
|
1806
1813
|
}
|
|
1807
1814
|
}
|
|
1808
1815
|
}
|
|
@@ -1837,7 +1844,8 @@ async function fetchSource(params) {
|
|
|
1837
1844
|
let { lock } = params;
|
|
1838
1845
|
const parsed = parseSource(sourceEntry.source);
|
|
1839
1846
|
if (parsed.provider === "gitlab") {
|
|
1840
|
-
|
|
1847
|
+
logger.warn(`GitLab sources are not yet supported. Skipping "${sourceEntry.source}".`);
|
|
1848
|
+
return { skillCount: 0, fetchedSkillNames: [], updatedLock: lock };
|
|
1841
1849
|
}
|
|
1842
1850
|
const sourceKey = sourceEntry.source;
|
|
1843
1851
|
const locked = getLockedSource(lock, sourceKey);
|
|
@@ -3799,7 +3807,7 @@ async function updateCommand(currentVersion, options) {
|
|
|
3799
3807
|
}
|
|
3800
3808
|
|
|
3801
3809
|
// src/cli/index.ts
|
|
3802
|
-
var getVersion = () => "7.
|
|
3810
|
+
var getVersion = () => "7.12.0";
|
|
3803
3811
|
var main = async () => {
|
|
3804
3812
|
const program = new Command();
|
|
3805
3813
|
const version = getVersion();
|