viberails 0.6.2 → 0.6.3
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/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -3385,21 +3385,21 @@ async function initInteractive(projectRoot, configPath, options) {
|
|
|
3385
3385
|
return;
|
|
3386
3386
|
}
|
|
3387
3387
|
const ws = clack8.spinner();
|
|
3388
|
-
ws.start("Writing configuration
|
|
3388
|
+
ws.start("Writing configuration...");
|
|
3389
3389
|
const compacted = (0, import_config8.compactConfig)(config);
|
|
3390
3390
|
fs19.writeFileSync(configPath, `${JSON.stringify(compacted, null, 2)}
|
|
3391
3391
|
`);
|
|
3392
3392
|
writeGeneratedFiles(projectRoot, config, scanResult);
|
|
3393
3393
|
updateGitignore(projectRoot);
|
|
3394
|
-
setupSelectedIntegrations(projectRoot, integrations, {
|
|
3395
|
-
linter: rootPkgStack?.linter?.split("@")[0],
|
|
3396
|
-
packageManager: rootPkgStack?.packageManager?.split("@")[0]
|
|
3397
|
-
});
|
|
3398
3394
|
ws.stop("Configuration written");
|
|
3399
3395
|
const ok = import_chalk12.default.green("\u2713");
|
|
3400
3396
|
clack8.log.step(`${ok} ${path19.basename(configPath)}`);
|
|
3401
3397
|
clack8.log.step(`${ok} .viberails/context.md`);
|
|
3402
3398
|
clack8.log.step(`${ok} .viberails/scan-result.json`);
|
|
3399
|
+
setupSelectedIntegrations(projectRoot, integrations, {
|
|
3400
|
+
linter: rootPkgStack?.linter?.split("@")[0],
|
|
3401
|
+
packageManager: rootPkgStack?.packageManager?.split("@")[0]
|
|
3402
|
+
});
|
|
3403
3403
|
clack8.outro(
|
|
3404
3404
|
`Done! Next: review viberails.config.json, then run viberails check
|
|
3405
3405
|
${import_chalk12.default.dim("Tip: use")} ${import_chalk12.default.cyan("viberails check --enforce")} ${import_chalk12.default.dim("in CI to block PRs on violations.")}`
|
|
@@ -3515,7 +3515,7 @@ ${import_chalk13.default.bold("Synced:")}`);
|
|
|
3515
3515
|
}
|
|
3516
3516
|
|
|
3517
3517
|
// src/index.ts
|
|
3518
|
-
var VERSION = "0.6.
|
|
3518
|
+
var VERSION = "0.6.3";
|
|
3519
3519
|
var program = new import_commander.Command();
|
|
3520
3520
|
program.name("viberails").description("Guardrails for vibe coding").version(VERSION);
|
|
3521
3521
|
program.command("init", { isDefault: true }).description("Scan your project and set up enforcement guardrails").option("-y, --yes", "Non-interactive mode (use defaults, high-confidence only)").option("-f, --force", "Re-initialize, replacing existing config").action(async (options) => {
|