rulesync 7.11.0 → 7.12.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.js CHANGED
@@ -60,7 +60,7 @@ import {
60
60
  removeTempDirectory,
61
61
  stringifyFrontmatter,
62
62
  writeFileContent
63
- } from "../chunk-T5MWTRJM.js";
63
+ } from "../chunk-3FGQWAXN.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
- ".rulesync/skills/.curated/",
1145
+ `${RULESYNC_CURATED_SKILLS_RELATIVE_DIR_PATH}/`,
1146
1146
  // AGENTS.md
1147
1147
  "**/AGENTS.md",
1148
1148
  "**/.agents/",
@@ -1708,15 +1708,22 @@ function normalizeSourceKey(source) {
1708
1708
  "https://www.github.com/",
1709
1709
  "https://github.com/",
1710
1710
  "http://www.github.com/",
1711
- "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/"
1712
1716
  ]) {
1713
1717
  if (key.toLowerCase().startsWith(prefix)) {
1714
1718
  key = key.substring(prefix.length);
1715
1719
  break;
1716
1720
  }
1717
1721
  }
1718
- if (key.startsWith("github:")) {
1719
- key = key.substring("github:".length);
1722
+ for (const provider of ["github:", "gitlab:"]) {
1723
+ if (key.startsWith(provider)) {
1724
+ key = key.substring(provider.length);
1725
+ break;
1726
+ }
1720
1727
  }
1721
1728
  key = key.replace(/\/+$/, "");
1722
1729
  key = key.replace(/\.git$/, "");
@@ -1800,10 +1807,9 @@ async function resolveAndFetchSources(params) {
1800
1807
  allFetchedSkillNames.add(name);
1801
1808
  }
1802
1809
  } catch (error) {
1810
+ logger.error(`Failed to fetch source "${sourceEntry.source}": ${formatError(error)}`);
1803
1811
  if (error instanceof GitHubClientError) {
1804
1812
  logGitHubAuthHints(error);
1805
- } else {
1806
- logger.error(`Failed to fetch source "${sourceEntry.source}": ${formatError(error)}`);
1807
1813
  }
1808
1814
  }
1809
1815
  }
@@ -1838,7 +1844,8 @@ async function fetchSource(params) {
1838
1844
  let { lock } = params;
1839
1845
  const parsed = parseSource(sourceEntry.source);
1840
1846
  if (parsed.provider === "gitlab") {
1841
- throw new Error("GitLab sources are not yet supported.");
1847
+ logger.warn(`GitLab sources are not yet supported. Skipping "${sourceEntry.source}".`);
1848
+ return { skillCount: 0, fetchedSkillNames: [], updatedLock: lock };
1842
1849
  }
1843
1850
  const sourceKey = sourceEntry.source;
1844
1851
  const locked = getLockedSource(lock, sourceKey);
@@ -3800,7 +3807,7 @@ async function updateCommand(currentVersion, options) {
3800
3807
  }
3801
3808
 
3802
3809
  // src/cli/index.ts
3803
- var getVersion = () => "7.11.0";
3810
+ var getVersion = () => "7.12.1";
3804
3811
  var main = async () => {
3805
3812
  const program = new Command();
3806
3813
  const version = getVersion();