rulesync 8.1.0 → 8.3.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 +2 -2
- package/dist/{chunk-FLZZ3LEK.js → chunk-RVBJT5ST.js} +1019 -610
- package/dist/cli/index.cjs +672 -253
- package/dist/cli/index.js +13 -3
- package/dist/index.cjs +1044 -635
- package/dist/index.js +1 -1
- package/package.json +5 -4
package/dist/cli/index.js
CHANGED
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
stringifyFrontmatter,
|
|
74
74
|
toPosixPath,
|
|
75
75
|
writeFileContent
|
|
76
|
-
} from "../chunk-
|
|
76
|
+
} from "../chunk-RVBJT5ST.js";
|
|
77
77
|
|
|
78
78
|
// src/cli/index.ts
|
|
79
79
|
import { Command } from "commander";
|
|
@@ -1552,6 +1552,12 @@ async function importCommand(logger5, options) {
|
|
|
1552
1552
|
if (!options.targets) {
|
|
1553
1553
|
throw new CLIError("No tools found in --targets", ErrorCodes.IMPORT_FAILED);
|
|
1554
1554
|
}
|
|
1555
|
+
if (!Array.isArray(options.targets)) {
|
|
1556
|
+
throw new CLIError(
|
|
1557
|
+
"--targets object form is not supported on the command line",
|
|
1558
|
+
ErrorCodes.IMPORT_FAILED
|
|
1559
|
+
);
|
|
1560
|
+
}
|
|
1555
1561
|
if (options.targets.length > 1) {
|
|
1556
1562
|
throw new CLIError("Only one tool can be imported at a time", ErrorCodes.IMPORT_FAILED);
|
|
1557
1563
|
}
|
|
@@ -4106,7 +4112,11 @@ var resolveGitignoreTargets = async ({
|
|
|
4106
4112
|
}
|
|
4107
4113
|
const config = await ConfigResolver.resolve({});
|
|
4108
4114
|
if (config.getGitignoreTargetsOnly()) {
|
|
4109
|
-
|
|
4115
|
+
const targets = config.getTargets();
|
|
4116
|
+
if (targets.includes("agentsmd")) {
|
|
4117
|
+
return targets;
|
|
4118
|
+
}
|
|
4119
|
+
return [...targets, "agentsmd"];
|
|
4110
4120
|
}
|
|
4111
4121
|
return void 0;
|
|
4112
4122
|
};
|
|
@@ -4513,7 +4523,7 @@ function wrapCommand({
|
|
|
4513
4523
|
}
|
|
4514
4524
|
|
|
4515
4525
|
// src/cli/index.ts
|
|
4516
|
-
var getVersion = () => "8.
|
|
4526
|
+
var getVersion = () => "8.3.0";
|
|
4517
4527
|
function wrapCommand2(name, errorCode, handler) {
|
|
4518
4528
|
return wrapCommand({ name, errorCode, handler, getVersion });
|
|
4519
4529
|
}
|