rulesync 7.3.0 → 7.5.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 +12 -941
- package/dist/{chunk-NRNUPCXY.js → chunk-WZ7IUX6M.js} +367 -137
- package/dist/cli/index.cjs +328 -109
- package/dist/cli/index.js +6 -17
- package/dist/index.cjs +323 -93
- package/dist/index.js +1 -1
- package/package.json +5 -2
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-WZ7IUX6M.js";
|
|
64
64
|
|
|
65
65
|
// src/cli/index.ts
|
|
66
66
|
import { Command } from "commander";
|
|
@@ -1759,19 +1759,10 @@ async function resolveAndFetchSources(params) {
|
|
|
1759
1759
|
let lock = options.updateSources ? createEmptyLock() : await readLockFile({ baseDir });
|
|
1760
1760
|
if (options.frozen) {
|
|
1761
1761
|
const missingKeys = [];
|
|
1762
|
-
const missingSkills = [];
|
|
1763
|
-
const curatedDir = join5(baseDir, RULESYNC_CURATED_SKILLS_RELATIVE_DIR_PATH);
|
|
1764
1762
|
for (const source of sources) {
|
|
1765
1763
|
const locked = getLockedSource(lock, source.source);
|
|
1766
1764
|
if (!locked) {
|
|
1767
1765
|
missingKeys.push(source.source);
|
|
1768
|
-
continue;
|
|
1769
|
-
}
|
|
1770
|
-
const skillNames = getLockedSkillNames(locked);
|
|
1771
|
-
for (const skillName of skillNames) {
|
|
1772
|
-
if (!await directoryExists(join5(curatedDir, skillName))) {
|
|
1773
|
-
missingSkills.push(`${source.source}:${skillName}`);
|
|
1774
|
-
}
|
|
1775
1766
|
}
|
|
1776
1767
|
}
|
|
1777
1768
|
if (missingKeys.length > 0) {
|
|
@@ -1779,11 +1770,6 @@ async function resolveAndFetchSources(params) {
|
|
|
1779
1770
|
`Frozen install failed: lockfile is missing entries for: ${missingKeys.join(", ")}. Run 'rulesync install' to update the lockfile.`
|
|
1780
1771
|
);
|
|
1781
1772
|
}
|
|
1782
|
-
if (missingSkills.length > 0) {
|
|
1783
|
-
throw new Error(
|
|
1784
|
-
`Frozen install failed: locked skills missing from disk: ${missingSkills.join(", ")}. Run 'rulesync install' to fetch missing skills.`
|
|
1785
|
-
);
|
|
1786
|
-
}
|
|
1787
1773
|
}
|
|
1788
1774
|
const originalLockJson = JSON.stringify(lock);
|
|
1789
1775
|
const token = GitHubClient.resolveToken(options.token);
|
|
@@ -3804,7 +3790,7 @@ async function updateCommand(currentVersion, options) {
|
|
|
3804
3790
|
}
|
|
3805
3791
|
|
|
3806
3792
|
// src/cli/index.ts
|
|
3807
|
-
var getVersion = () => "7.
|
|
3793
|
+
var getVersion = () => "7.5.0";
|
|
3808
3794
|
var main = async () => {
|
|
3809
3795
|
const program = new Command();
|
|
3810
3796
|
const version = getVersion();
|
|
@@ -3877,7 +3863,10 @@ var main = async () => {
|
|
|
3877
3863
|
process.exit(1);
|
|
3878
3864
|
}
|
|
3879
3865
|
});
|
|
3880
|
-
program.command("install").description("Install skills from declarative sources in rulesync.jsonc").option("--update", "Force re-resolve all source refs, ignoring lockfile").option(
|
|
3866
|
+
program.command("install").description("Install skills from declarative sources in rulesync.jsonc").option("--update", "Force re-resolve all source refs, ignoring lockfile").option(
|
|
3867
|
+
"--frozen",
|
|
3868
|
+
"Fail if lockfile is missing or out of sync (for CI); fetches missing skills using locked refs"
|
|
3869
|
+
).option("--token <token>", "GitHub token for private repos").option("-c, --config <path>", "Path to configuration file").option("-V, --verbose", "Verbose output").option("-s, --silent", "Suppress all output").action(async (options) => {
|
|
3881
3870
|
try {
|
|
3882
3871
|
await installCommand({
|
|
3883
3872
|
update: options.update,
|