rulesync 7.18.0 → 7.18.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 +8 -5
- package/dist/cli/index.js +8 -5
- package/package.json +1 -1
package/dist/cli/index.cjs
CHANGED
|
@@ -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.
|
|
21243
|
+
var getVersion = () => "7.18.1";
|
|
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.
|
|
4155
|
+
var getVersion = () => "7.18.1";
|
|
4153
4156
|
var main = async () => {
|
|
4154
4157
|
const program = new Command();
|
|
4155
4158
|
const version = getVersion();
|