rulesync 7.18.0 → 7.18.2

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.
@@ -19198,12 +19198,13 @@ async function writeSkillAndComputeIntegrity(params) {
19198
19198
  return { integrity };
19199
19199
  }
19200
19200
  function buildLockUpdate(params) {
19201
- const { lock, sourceKey, fetchedSkills, locked, requestedRef, resolvedSha } = params;
19201
+ const { lock, sourceKey, fetchedSkills, locked, requestedRef, resolvedSha, remoteSkillNames } = params;
19202
19202
  const fetchedNames = Object.keys(fetchedSkills);
19203
+ const remoteSet = new Set(remoteSkillNames);
19203
19204
  const mergedSkills = { ...fetchedSkills };
19204
19205
  if (locked) {
19205
19206
  for (const [skillName, skillEntry] of Object.entries(locked.skills)) {
19206
- if (!(skillName in mergedSkills)) {
19207
+ if (!(skillName in mergedSkills) && remoteSet.has(skillName)) {
19207
19208
  mergedSkills[skillName] = skillEntry;
19208
19209
  }
19209
19210
  }
@@ -19327,7 +19328,8 @@ async function fetchSource(params) {
19327
19328
  fetchedSkills,
19328
19329
  locked,
19329
19330
  requestedRef,
19330
- resolvedSha
19331
+ resolvedSha,
19332
+ remoteSkillNames: filteredDirs.map((d) => d.name)
19331
19333
  });
19332
19334
  return {
19333
19335
  skillCount: result.fetchedNames.length,
@@ -19415,7 +19417,8 @@ async function fetchSourceViaGit(params) {
19415
19417
  fetchedSkills,
19416
19418
  locked,
19417
19419
  requestedRef,
19418
- resolvedSha
19420
+ resolvedSha,
19421
+ remoteSkillNames: filteredNames
19419
19422
  });
19420
19423
  return {
19421
19424
  skillCount: result.fetchedNames.length,
@@ -21237,7 +21240,7 @@ async function updateCommand(currentVersion, options) {
21237
21240
  }
21238
21241
 
21239
21242
  // src/cli/index.ts
21240
- var getVersion = () => "7.18.0";
21243
+ var getVersion = () => "7.18.2";
21241
21244
  var main = async () => {
21242
21245
  const program = new import_commander.Command();
21243
21246
  const version = getVersion();
package/dist/cli/index.js CHANGED
@@ -2110,12 +2110,13 @@ async function writeSkillAndComputeIntegrity(params) {
2110
2110
  return { integrity };
2111
2111
  }
2112
2112
  function buildLockUpdate(params) {
2113
- const { lock, sourceKey, fetchedSkills, locked, requestedRef, resolvedSha } = params;
2113
+ const { lock, sourceKey, fetchedSkills, locked, requestedRef, resolvedSha, remoteSkillNames } = params;
2114
2114
  const fetchedNames = Object.keys(fetchedSkills);
2115
+ const remoteSet = new Set(remoteSkillNames);
2115
2116
  const mergedSkills = { ...fetchedSkills };
2116
2117
  if (locked) {
2117
2118
  for (const [skillName, skillEntry] of Object.entries(locked.skills)) {
2118
- if (!(skillName in mergedSkills)) {
2119
+ if (!(skillName in mergedSkills) && remoteSet.has(skillName)) {
2119
2120
  mergedSkills[skillName] = skillEntry;
2120
2121
  }
2121
2122
  }
@@ -2239,7 +2240,8 @@ async function fetchSource(params) {
2239
2240
  fetchedSkills,
2240
2241
  locked,
2241
2242
  requestedRef,
2242
- resolvedSha
2243
+ resolvedSha,
2244
+ remoteSkillNames: filteredDirs.map((d) => d.name)
2243
2245
  });
2244
2246
  return {
2245
2247
  skillCount: result.fetchedNames.length,
@@ -2327,7 +2329,8 @@ async function fetchSourceViaGit(params) {
2327
2329
  fetchedSkills,
2328
2330
  locked,
2329
2331
  requestedRef,
2330
- resolvedSha
2332
+ resolvedSha,
2333
+ remoteSkillNames: filteredNames
2331
2334
  });
2332
2335
  return {
2333
2336
  skillCount: result.fetchedNames.length,
@@ -4149,7 +4152,7 @@ async function updateCommand(currentVersion, options) {
4149
4152
  }
4150
4153
 
4151
4154
  // src/cli/index.ts
4152
- var getVersion = () => "7.18.0";
4155
+ var getVersion = () => "7.18.2";
4153
4156
  var main = async () => {
4154
4157
  const program = new Command();
4155
4158
  const version = getVersion();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rulesync",
3
- "version": "7.18.0",
3
+ "version": "7.18.2",
4
4
  "description": "Unified AI rules management CLI tool that generates configuration files for various AI development tools",
5
5
  "keywords": [
6
6
  "ai",
@@ -57,7 +57,7 @@
57
57
  "consola": "3.4.2",
58
58
  "effect": "3.19.19",
59
59
  "es-toolkit": "1.45.1",
60
- "fastmcp": "3.33.0",
60
+ "fastmcp": "3.34.0",
61
61
  "globby": "16.1.1",
62
62
  "gray-matter": "4.0.3",
63
63
  "js-yaml": "4.1.1",
@@ -67,26 +67,26 @@
67
67
  "zod": "4.3.6"
68
68
  },
69
69
  "devDependencies": {
70
- "@anthropic-ai/claude-agent-sdk": "0.2.69",
71
- "@eslint/js": "9.39.2",
70
+ "@anthropic-ai/claude-agent-sdk": "0.2.74",
71
+ "@eslint/js": "9.39.4",
72
72
  "@openrouter/sdk": "0.9.11",
73
73
  "@secretlint/secretlint-rule-preset-recommend": "11.3.1",
74
74
  "@tsconfig/node24": "24.0.4",
75
75
  "@types/js-yaml": "4.0.9",
76
- "@types/node": "25.3.3",
77
- "@typescript/native-preview": "7.0.0-dev.20260304.1",
76
+ "@types/node": "25.4.0",
77
+ "@typescript/native-preview": "7.0.0-dev.20260312.1",
78
78
  "@vitest/coverage-v8": "4.0.18",
79
79
  "cspell": "9.7.0",
80
- "eslint": "9.39.2",
80
+ "eslint": "9.39.4",
81
81
  "eslint-plugin-import": "2.32.0",
82
82
  "eslint-plugin-no-type-assertion": "1.3.0",
83
- "eslint-plugin-oxlint": "1.51.0",
83
+ "eslint-plugin-oxlint": "1.53.0",
84
84
  "eslint-plugin-strict-dependencies": "1.3.31",
85
85
  "eslint-plugin-zod-import": "0.3.0",
86
- "knip": "5.85.0",
87
- "lint-staged": "16.3.2",
88
- "oxfmt": "0.36.0",
89
- "oxlint": "1.51.0",
86
+ "knip": "5.86.0",
87
+ "lint-staged": "16.3.3",
88
+ "oxfmt": "0.39.0",
89
+ "oxlint": "1.54.0",
90
90
  "repomix": "1.12.0",
91
91
  "resend": "6.9.3",
92
92
  "secretlint": "11.3.1",
@@ -95,7 +95,7 @@
95
95
  "tsup": "8.5.1",
96
96
  "tsx": "4.21.0",
97
97
  "typescript": "5.9.3",
98
- "typescript-eslint": "8.56.1",
98
+ "typescript-eslint": "8.57.0",
99
99
  "vitepress": "1.6.4",
100
100
  "vitest": "4.0.18"
101
101
  },