@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.
Files changed (2) hide show
  1. package/dist/bin.js +13 -0
  2. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rely-ai/caliber",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Open-source CLI for configuring coding agent environments (CLAUDE.md, .cursorrules, skills). Bring your own LLM.",
5
5
  "type": "module",
6
6
  "bin": {