@rely-ai/caliber 0.5.3 → 0.6.0
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 -11
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -3796,7 +3796,9 @@ function displayScoreDelta(before, after) {
|
|
|
3796
3796
|
|
|
3797
3797
|
// src/commands/init.ts
|
|
3798
3798
|
async function initCommand(options) {
|
|
3799
|
-
|
|
3799
|
+
const brand = chalk4.hex("#EB9D83");
|
|
3800
|
+
const title = chalk4.hex("#83D1EB");
|
|
3801
|
+
console.log(brand.bold(`
|
|
3800
3802
|
\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2557
|
|
3801
3803
|
\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557
|
|
3802
3804
|
\u2588\u2588\u2551 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D
|
|
@@ -3805,17 +3807,17 @@ async function initCommand(options) {
|
|
|
3805
3807
|
\u255A\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D
|
|
3806
3808
|
`));
|
|
3807
3809
|
console.log(chalk4.dim(" Configure your coding agent environment\n"));
|
|
3808
|
-
console.log(
|
|
3810
|
+
console.log(title.bold(" What is Caliber?\n"));
|
|
3809
3811
|
console.log(chalk4.dim(" Caliber audits your AI agent configurations and suggests targeted"));
|
|
3810
3812
|
console.log(chalk4.dim(" improvements. It analyzes CLAUDE.md, .cursorrules, and skills"));
|
|
3811
3813
|
console.log(chalk4.dim(" against your actual codebase \u2014 keeping what works, fixing"));
|
|
3812
3814
|
console.log(chalk4.dim(" what's stale, and adding what's missing.\n"));
|
|
3813
|
-
console.log(
|
|
3815
|
+
console.log(title.bold(" How it works:\n"));
|
|
3814
3816
|
console.log(chalk4.dim(" 1. Scan Analyze your code, dependencies, and existing configs"));
|
|
3815
3817
|
console.log(chalk4.dim(" 2. Generate AI creates or improves config files for your project"));
|
|
3816
3818
|
console.log(chalk4.dim(" 3. Review You accept, refine, or decline the proposed changes"));
|
|
3817
3819
|
console.log(chalk4.dim(" 4. Apply Config files are written with backups\n"));
|
|
3818
|
-
console.log(
|
|
3820
|
+
console.log(title.bold(" Step 1/4 \u2014 How do you want to use Caliber?\n"));
|
|
3819
3821
|
let config = loadConfig();
|
|
3820
3822
|
if (!config) {
|
|
3821
3823
|
console.log(chalk4.dim(" No LLM provider set yet. Choose how to run Caliber:\n"));
|
|
@@ -3837,7 +3839,7 @@ async function initCommand(options) {
|
|
|
3837
3839
|
const displayModel = config.model === "default" && config.provider === "claude-cli" ? process.env.ANTHROPIC_MODEL || "default (inherited from Claude Code)" : config.model;
|
|
3838
3840
|
console.log(chalk4.dim(` Provider: ${config.provider} | Model: ${displayModel}
|
|
3839
3841
|
`));
|
|
3840
|
-
console.log(
|
|
3842
|
+
console.log(title.bold(" Step 2/4 \u2014 Scan project\n"));
|
|
3841
3843
|
console.log(chalk4.dim(" Detecting languages, dependencies, file structure, and existing configs.\n"));
|
|
3842
3844
|
const spinner = ora("Analyzing project...").start();
|
|
3843
3845
|
const fingerprint = collectFingerprint(process.cwd());
|
|
@@ -3848,7 +3850,7 @@ async function initCommand(options) {
|
|
|
3848
3850
|
`));
|
|
3849
3851
|
const targetAgent = options.agent || await promptAgent();
|
|
3850
3852
|
const baselineScore = computeLocalScore(process.cwd(), targetAgent);
|
|
3851
|
-
console.log(
|
|
3853
|
+
console.log(title.bold(" Current project score\n"));
|
|
3852
3854
|
displayScore(baselineScore);
|
|
3853
3855
|
const hasExistingConfig = !!(fingerprint.existingConfigs.claudeMd || fingerprint.existingConfigs.claudeSettings || fingerprint.existingConfigs.claudeSkills?.length || fingerprint.existingConfigs.cursorrules || fingerprint.existingConfigs.cursorRules?.length);
|
|
3854
3856
|
if (hasExistingConfig && baselineScore.score === 100) {
|
|
@@ -3868,7 +3870,7 @@ async function initCommand(options) {
|
|
|
3868
3870
|
passingChecks = baselineScore.checks.filter((c) => c.passed).map((c) => ({ name: c.name }));
|
|
3869
3871
|
currentScore = baselineScore.score;
|
|
3870
3872
|
if (failingChecks.length > 0) {
|
|
3871
|
-
console.log(
|
|
3873
|
+
console.log(title.bold(" Step 3/4 \u2014 Targeted fixes\n"));
|
|
3872
3874
|
console.log(chalk4.dim(` Score is ${baselineScore.score}/100 \u2014 only fixing ${failingChecks.length} remaining issue${failingChecks.length === 1 ? "" : "s"}:
|
|
3873
3875
|
`));
|
|
3874
3876
|
for (const check of failingChecks) {
|
|
@@ -3877,11 +3879,11 @@ async function initCommand(options) {
|
|
|
3877
3879
|
console.log("");
|
|
3878
3880
|
}
|
|
3879
3881
|
} else if (hasExistingConfig) {
|
|
3880
|
-
console.log(
|
|
3882
|
+
console.log(title.bold(" Step 3/4 \u2014 Auditing your configs\n"));
|
|
3881
3883
|
console.log(chalk4.dim(" AI is reviewing your existing configs against your codebase"));
|
|
3882
3884
|
console.log(chalk4.dim(" and suggesting improvements.\n"));
|
|
3883
3885
|
} else {
|
|
3884
|
-
console.log(
|
|
3886
|
+
console.log(title.bold(" Step 3/4 \u2014 Generating configs\n"));
|
|
3885
3887
|
console.log(chalk4.dim(" AI is creating agent config files tailored to your project.\n"));
|
|
3886
3888
|
}
|
|
3887
3889
|
console.log(chalk4.dim(" This can take a couple of minutes depending on your model and provider.\n"));
|
|
@@ -3937,7 +3939,7 @@ async function initCommand(options) {
|
|
|
3937
3939
|
const timeStr = mins > 0 ? `${mins}m ${secs}s` : `${secs}s`;
|
|
3938
3940
|
genSpinner.succeed(`Setup generated ${chalk4.dim(`in ${timeStr}`)}`);
|
|
3939
3941
|
printSetupSummary(generatedSetup);
|
|
3940
|
-
console.log(
|
|
3942
|
+
console.log(title.bold(" Step 4/4 \u2014 Review\n"));
|
|
3941
3943
|
const setupFiles = collectSetupFiles(generatedSetup);
|
|
3942
3944
|
const staged = stageFiles(setupFiles, process.cwd());
|
|
3943
3945
|
console.log(chalk4.dim(` ${chalk4.green(`${staged.newFiles} new`)} / ${chalk4.yellow(`${staged.modifiedFiles} modified`)} file${staged.newFiles + staged.modifiedFiles !== 1 ? "s" : ""}
|
|
@@ -4061,7 +4063,7 @@ async function initCommand(options) {
|
|
|
4061
4063
|
console.log(chalk4.bold.green(" Setup complete! Your coding agent is now configured."));
|
|
4062
4064
|
console.log(chalk4.dim(" Run `caliber undo` to revert changes.\n"));
|
|
4063
4065
|
console.log(chalk4.bold(" Next steps:\n"));
|
|
4064
|
-
console.log(` ${
|
|
4066
|
+
console.log(` ${title("caliber undo")} Revert all changes from this run`);
|
|
4065
4067
|
console.log("");
|
|
4066
4068
|
}
|
|
4067
4069
|
async function refineLoop(currentSetup, _targetAgent) {
|
package/package.json
CHANGED