@rely-ai/caliber 1.3.1 → 1.3.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/bin.js +22 -30
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -2563,7 +2563,7 @@ function promptInput(question) {
|
|
|
2563
2563
|
});
|
|
2564
2564
|
}
|
|
2565
2565
|
var PROVIDER_CHOICES = [
|
|
2566
|
-
{ name: "Claude Code
|
|
2566
|
+
{ name: "Claude Code \u2014 Use my Claude Code subscription", value: "claude-cli" },
|
|
2567
2567
|
{ name: "Cursor (use my Cursor subscription \u2014 no API key)", value: "cursor" },
|
|
2568
2568
|
{ name: "Anthropic (Claude) \u2014 API key from console.anthropic.com", value: "anthropic" },
|
|
2569
2569
|
{ name: "Google Vertex AI (Claude)", value: "vertex" },
|
|
@@ -3799,15 +3799,13 @@ function displayScore(result) {
|
|
|
3799
3799
|
const gc = gradeColor(result.grade);
|
|
3800
3800
|
const agentLabel = result.targetAgent.map((a) => AGENT_DISPLAY_NAMES[a] || a).join(" + ");
|
|
3801
3801
|
console.log("");
|
|
3802
|
-
console.log(chalk3.gray(" \
|
|
3803
|
-
console.log(
|
|
3804
|
-
console.log(
|
|
3805
|
-
|
|
3806
|
-
);
|
|
3807
|
-
console.log(
|
|
3808
|
-
console.log(chalk3.gray(" \
|
|
3809
|
-
console.log(chalk3.gray(" \u2502") + " " + chalk3.gray("\u2502"));
|
|
3810
|
-
console.log(chalk3.gray(" \u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F"));
|
|
3802
|
+
console.log(chalk3.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
|
|
3803
|
+
console.log("");
|
|
3804
|
+
console.log(` ${chalk3.bold("Agent Config Score")} ${gc(chalk3.bold(`${result.score} / ${result.maxScore}`))} Grade ${gc(chalk3.bold(result.grade))}`);
|
|
3805
|
+
console.log(` ${progressBar(result.score, result.maxScore)}`);
|
|
3806
|
+
console.log(chalk3.dim(` Target: ${agentLabel}`));
|
|
3807
|
+
console.log("");
|
|
3808
|
+
console.log(chalk3.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
|
|
3811
3809
|
console.log("");
|
|
3812
3810
|
for (const category of CATEGORY_ORDER) {
|
|
3813
3811
|
const summary = result.categories[category];
|
|
@@ -3847,26 +3845,15 @@ function displayScoreDelta(before, after) {
|
|
|
3847
3845
|
const deltaColor = delta >= 0 ? chalk3.green : chalk3.red;
|
|
3848
3846
|
const beforeGc = gradeColor(before.grade);
|
|
3849
3847
|
const afterGc = gradeColor(after.grade);
|
|
3850
|
-
const BOX_INNER = 51;
|
|
3851
|
-
const scorePart = `Score: ${before.score} > ${after.score}`;
|
|
3852
|
-
const deltaPart = `${deltaStr} pts`;
|
|
3853
|
-
const gradePart = `${before.grade} > ${after.grade}`;
|
|
3854
|
-
const contentLen = 3 + scorePart.length + deltaPart.length + gradePart.length + 8;
|
|
3855
|
-
const totalPad = BOX_INNER - contentLen;
|
|
3856
|
-
const pad1 = Math.max(2, Math.ceil(totalPad / 2));
|
|
3857
|
-
const pad2 = Math.max(1, totalPad - pad1);
|
|
3858
|
-
const scoreLineFormatted = " Score: " + beforeGc(`${before.score}`) + chalk3.gray(" \u2192 ") + afterGc(`${after.score}`) + " ".repeat(pad1) + deltaColor(deltaPart) + " ".repeat(pad2) + beforeGc(before.grade) + chalk3.gray(" \u2192 ") + afterGc(after.grade);
|
|
3859
|
-
const visibleLen = 3 + scorePart.length + pad1 + deltaPart.length + pad2 + gradePart.length;
|
|
3860
|
-
const trailingPad = Math.max(0, BOX_INNER - visibleLen);
|
|
3861
|
-
const barWidth = Math.floor((BOX_INNER - 12) / 2);
|
|
3862
|
-
const barLine = ` ${progressBar(before.score, before.maxScore, barWidth)}` + chalk3.gray(" \u2192 ") + progressBar(after.score, after.maxScore, barWidth) + " ";
|
|
3863
3848
|
console.log("");
|
|
3864
|
-
console.log(chalk3.gray(" \
|
|
3865
|
-
console.log(
|
|
3866
|
-
console.log(
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
console.log(chalk3.gray("
|
|
3849
|
+
console.log(chalk3.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
|
|
3850
|
+
console.log("");
|
|
3851
|
+
console.log(
|
|
3852
|
+
` Score: ${beforeGc(`${before.score}`)} ${chalk3.gray("\u2192")} ${afterGc(`${after.score}`)} ${deltaColor(deltaStr + " pts")} ${beforeGc(before.grade)} ${chalk3.gray("\u2192")} ${afterGc(after.grade)}`
|
|
3853
|
+
);
|
|
3854
|
+
console.log(` ${progressBar(before.score, before.maxScore, 19)} ${chalk3.gray("\u2192")} ${progressBar(after.score, after.maxScore, 19)}`);
|
|
3855
|
+
console.log("");
|
|
3856
|
+
console.log(chalk3.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
|
|
3870
3857
|
console.log("");
|
|
3871
3858
|
const improved = after.checks.filter((ac) => {
|
|
3872
3859
|
const bc = before.checks.find((b) => b.id === ac.id);
|
|
@@ -6565,9 +6552,14 @@ import chalk13 from "chalk";
|
|
|
6565
6552
|
async function configCommand() {
|
|
6566
6553
|
const existing = loadConfig();
|
|
6567
6554
|
if (existing) {
|
|
6555
|
+
const displayModel = existing.model === "default" && existing.provider === "claude-cli" ? process.env.ANTHROPIC_MODEL || "default (inherited from Claude Code)" : existing.model;
|
|
6556
|
+
const fastModel = getFastModel();
|
|
6568
6557
|
console.log(chalk13.bold("\nCurrent Configuration\n"));
|
|
6569
6558
|
console.log(` Provider: ${chalk13.cyan(existing.provider)}`);
|
|
6570
|
-
console.log(` Model: ${chalk13.cyan(
|
|
6559
|
+
console.log(` Model: ${chalk13.cyan(displayModel)}`);
|
|
6560
|
+
if (fastModel) {
|
|
6561
|
+
console.log(` Scan: ${chalk13.cyan(fastModel)}`);
|
|
6562
|
+
}
|
|
6571
6563
|
if (existing.apiKey) {
|
|
6572
6564
|
const masked = existing.apiKey.slice(0, 8) + "..." + existing.apiKey.slice(-4);
|
|
6573
6565
|
console.log(` API Key: ${chalk13.dim(masked)}`);
|
package/package.json
CHANGED