@rely-ai/caliber 1.22.1-dev.1773780585 → 1.22.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 +36 -30
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -7050,9 +7050,9 @@ var ParallelTaskDisplay = class {
7050
7050
  cachedCardLines = null;
7051
7051
  cachedCardIndex = -1;
7052
7052
  cachedCardCols = -1;
7053
- add(name) {
7053
+ add(name, options) {
7054
7054
  const index = this.tasks.length;
7055
- this.tasks.push({ name, status: "pending", message: "" });
7055
+ this.tasks.push({ name, status: "pending", message: "", depth: options?.depth ?? 0 });
7056
7056
  return index;
7057
7057
  }
7058
7058
  start() {
@@ -7189,11 +7189,12 @@ var ParallelTaskDisplay = class {
7189
7189
  msgStyle = chalk10.red;
7190
7190
  break;
7191
7191
  }
7192
- const paddedName = task.name.padEnd(NAME_COL_WIDTH);
7193
- const usedByFixed = PREFIX.length + 2 + NAME_COL_WIDTH + timePlain.length;
7192
+ const indent = " ".repeat(task.depth);
7193
+ const paddedName = task.name.padEnd(Math.max(0, NAME_COL_WIDTH - indent.length));
7194
+ const usedByFixed = PREFIX.length + indent.length + 2 + NAME_COL_WIDTH + timePlain.length;
7194
7195
  const msgMax = Math.max(cols - usedByFixed - 2, 10);
7195
7196
  const msg = task.message ? this.smartTruncate(task.message, msgMax) : "";
7196
- return `${PREFIX}${icon} ${nameStyle(paddedName)}${msg ? msgStyle(msg) : ""}${timeStr}`;
7197
+ return `${PREFIX}${indent}${icon} ${nameStyle(paddedName)}${msg ? msgStyle(msg) : ""}${timeStr}`;
7197
7198
  }
7198
7199
  draw(initial) {
7199
7200
  const { stdout } = process;
@@ -7354,7 +7355,7 @@ async function initCommand(options) {
7354
7355
  const display = new ParallelTaskDisplay();
7355
7356
  const TASK_STACK = display.add("Detecting project stack");
7356
7357
  const TASK_CONFIG = display.add("Generating configs");
7357
- const TASK_SKILLS_GEN = display.add("Generating skills");
7358
+ const TASK_SKILLS_GEN = display.add("Generating skills", { depth: 1 });
7358
7359
  const TASK_SKILLS_SEARCH = wantsSkills ? display.add("Searching community skills") : -1;
7359
7360
  const TASK_SCORE_REFINE = display.add("Validating & refining setup");
7360
7361
  display.start();
@@ -7382,32 +7383,37 @@ async function initCommand(options) {
7382
7383
  fingerprint.description = await promptInput("What will you build in this project?");
7383
7384
  display.start();
7384
7385
  }
7385
- const failingForDismissal = baselineScore.checks.filter((c) => !c.passed && c.maxPoints > 0);
7386
- if (failingForDismissal.length > 0) {
7387
- const newDismissals = await evaluateDismissals(failingForDismissal, fingerprint);
7388
- if (newDismissals.length > 0) {
7389
- const existing = readDismissedChecks();
7390
- const existingIds = new Set(existing.map((d) => d.id));
7391
- const merged = [...existing, ...newDismissals.filter((d) => !existingIds.has(d.id))];
7392
- writeDismissedChecks(merged);
7393
- baselineScore = computeLocalScore(process.cwd(), targetAgent);
7394
- }
7395
- }
7396
- let failingChecks;
7397
- let passingChecks;
7398
- let currentScore;
7399
- if (hasExistingConfig && baselineScore.score >= 95 && !options.force) {
7400
- const currentLlmFixable = baselineScore.checks.filter((c) => !c.passed && c.maxPoints > 0 && !NON_LLM_CHECKS.has(c.id));
7401
- failingChecks = currentLlmFixable.map((c) => ({ name: c.name, suggestion: c.suggestion, fix: c.fix }));
7402
- passingChecks = baselineScore.checks.filter((c) => c.passed).map((c) => ({ name: c.name }));
7403
- currentScore = baselineScore.score;
7404
- }
7405
- if (report) {
7406
- const fullPrompt = buildGeneratePrompt(fingerprint, targetAgent, fingerprint.description, failingChecks, currentScore, passingChecks);
7407
- report.addCodeBlock("Generation: Full LLM Prompt", fullPrompt);
7408
- }
7409
7386
  display.update(TASK_CONFIG, "running");
7410
7387
  const generatePromise = (async () => {
7388
+ const failingForDismissal = baselineScore.checks.filter((c) => !c.passed && c.maxPoints > 0);
7389
+ if (failingForDismissal.length > 0) {
7390
+ display.update(TASK_CONFIG, "running", "Evaluating baseline checks...");
7391
+ try {
7392
+ const newDismissals = await evaluateDismissals(failingForDismissal, fingerprint);
7393
+ if (newDismissals.length > 0) {
7394
+ const existing = readDismissedChecks();
7395
+ const existingIds = new Set(existing.map((d) => d.id));
7396
+ const merged = [...existing, ...newDismissals.filter((d) => !existingIds.has(d.id))];
7397
+ writeDismissedChecks(merged);
7398
+ baselineScore = computeLocalScore(process.cwd(), targetAgent);
7399
+ }
7400
+ } catch {
7401
+ display.update(TASK_CONFIG, "running", "Skipped dismissal evaluation");
7402
+ }
7403
+ }
7404
+ let failingChecks;
7405
+ let passingChecks;
7406
+ let currentScore;
7407
+ if (hasExistingConfig && baselineScore.score >= 95 && !options.force) {
7408
+ const currentLlmFixable = baselineScore.checks.filter((c) => !c.passed && c.maxPoints > 0 && !NON_LLM_CHECKS.has(c.id));
7409
+ failingChecks = currentLlmFixable.map((c) => ({ name: c.name, suggestion: c.suggestion, fix: c.fix }));
7410
+ passingChecks = baselineScore.checks.filter((c) => c.passed).map((c) => ({ name: c.name }));
7411
+ currentScore = baselineScore.score;
7412
+ }
7413
+ if (report) {
7414
+ const fullPrompt = buildGeneratePrompt(fingerprint, targetAgent, fingerprint.description, failingChecks, currentScore, passingChecks);
7415
+ report.addCodeBlock("Generation: Full LLM Prompt", fullPrompt);
7416
+ }
7411
7417
  const result = await generateSetup(
7412
7418
  fingerprint,
7413
7419
  targetAgent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rely-ai/caliber",
3
- "version": "1.22.1-dev.1773780585",
3
+ "version": "1.22.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": {