@rely-ai/caliber 0.4.0 → 0.4.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/bin.js +13 -0
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -3985,6 +3985,19 @@ async function initCommand(options) {
|
|
|
3985
3985
|
console.log(chalk4.dim(" Skipped auto-refresh hooks. Run `caliber hooks install` later to enable."));
|
|
3986
3986
|
}
|
|
3987
3987
|
const afterScore = computeLocalScore(process.cwd(), targetAgent);
|
|
3988
|
+
if (afterScore.score < baselineScore.score) {
|
|
3989
|
+
console.log("");
|
|
3990
|
+
console.log(chalk4.yellow(` Score would drop from ${baselineScore.score} to ${afterScore.score} \u2014 reverting changes.`));
|
|
3991
|
+
try {
|
|
3992
|
+
const { restored, removed } = undoSetup();
|
|
3993
|
+
if (restored.length > 0 || removed.length > 0) {
|
|
3994
|
+
console.log(chalk4.dim(` Reverted ${restored.length + removed.length} file${restored.length + removed.length === 1 ? "" : "s"} from backup.`));
|
|
3995
|
+
}
|
|
3996
|
+
} catch {
|
|
3997
|
+
}
|
|
3998
|
+
console.log(chalk4.dim(" Run `caliber init --force` to override.\n"));
|
|
3999
|
+
return;
|
|
4000
|
+
}
|
|
3988
4001
|
displayScoreDelta(baselineScore, afterScore);
|
|
3989
4002
|
console.log(chalk4.bold.green(" Setup complete! Your coding agent is now configured."));
|
|
3990
4003
|
console.log(chalk4.dim(" Run `caliber undo` to revert changes.\n"));
|
package/package.json
CHANGED