@rely-ai/caliber 0.7.1 → 0.8.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 +21 -2
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -3756,6 +3756,26 @@ function displayScore(result) {
3756
3756
  console.log("");
3757
3757
  }
3758
3758
  }
3759
+ function displayScoreSummary(result) {
3760
+ const gc = gradeColor(result.grade);
3761
+ const agentLabel = result.targetAgent === "both" ? "Claude Code + Cursor" : result.targetAgent === "claude" ? "Claude Code" : "Cursor";
3762
+ console.log("");
3763
+ console.log(
3764
+ chalk3.gray(" ") + gc(`${result.score}/${result.maxScore}`) + chalk3.gray(` (Grade ${result.grade})`) + chalk3.gray(` \xB7 ${agentLabel}`) + chalk3.gray(` \xB7 ${progressBar(result.score, result.maxScore, 20)}`)
3765
+ );
3766
+ const failing = result.checks.filter((c) => !c.passed);
3767
+ if (failing.length > 0) {
3768
+ const shown = failing.slice(0, 5);
3769
+ for (const check of shown) {
3770
+ console.log(chalk3.gray(` \u2717 ${check.name}`));
3771
+ }
3772
+ const remaining = failing.length - shown.length;
3773
+ const moreText = remaining > 0 ? ` (+${remaining} more)` : "";
3774
+ console.log(chalk3.dim(`
3775
+ Run ${chalk3.reset("caliber score")} for details.${moreText}`));
3776
+ }
3777
+ console.log("");
3778
+ }
3759
3779
  function displayScoreDelta(before, after) {
3760
3780
  const delta = after.score - before.score;
3761
3781
  const deltaStr = delta >= 0 ? `+${delta}` : `${delta}`;
@@ -3857,8 +3877,7 @@ async function initCommand(options) {
3857
3877
  `));
3858
3878
  const targetAgent = options.agent || await promptAgent();
3859
3879
  const baselineScore = computeLocalScore(process.cwd(), targetAgent);
3860
- console.log(title.bold(" Current project score\n"));
3861
- displayScore(baselineScore);
3880
+ displayScoreSummary(baselineScore);
3862
3881
  const hasExistingConfig = !!(fingerprint.existingConfigs.claudeMd || fingerprint.existingConfigs.claudeSettings || fingerprint.existingConfigs.claudeSkills?.length || fingerprint.existingConfigs.cursorrules || fingerprint.existingConfigs.cursorRules?.length);
3863
3882
  if (hasExistingConfig && baselineScore.score === 100) {
3864
3883
  console.log(chalk4.bold.green(" Your setup is already optimal \u2014 nothing to change.\n"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rely-ai/caliber",
3
- "version": "0.7.1",
3
+ "version": "0.8.1",
4
4
  "description": "Analyze your codebase and generate optimized AI agent configs (CLAUDE.md, .cursorrules, skills) — no API key needed",
5
5
  "type": "module",
6
6
  "bin": {