@rely-ai/caliber 1.14.1 → 1.14.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 +0 -37
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -6195,43 +6195,6 @@ async function initCommand(options) {
|
|
|
6195
6195
|
if (rawOutput) report.addCodeBlock("Generation: Raw LLM Response", rawOutput);
|
|
6196
6196
|
report.addJson("Generation: Parsed Setup", generatedSetup);
|
|
6197
6197
|
}
|
|
6198
|
-
{
|
|
6199
|
-
const preWriteResult = writeSetup(generatedSetup);
|
|
6200
|
-
const inlineScore = computeLocalScore(process.cwd(), targetAgent);
|
|
6201
|
-
if (inlineScore.score < 100) {
|
|
6202
|
-
const inlineFailingChecks = inlineScore.checks.filter((c) => !c.passed && c.maxPoints > 0).filter((c) => !NON_LLM_CHECKS.has(c.id));
|
|
6203
|
-
if (inlineFailingChecks.length > 0) {
|
|
6204
|
-
genSpinner.text = "Polishing generated setup...";
|
|
6205
|
-
log(options.verbose, `Inline polish: score ${inlineScore.score}/100, fixing ${inlineFailingChecks.length} checks`);
|
|
6206
|
-
try {
|
|
6207
|
-
const polishResult = await generateSetup(
|
|
6208
|
-
fingerprint,
|
|
6209
|
-
targetAgent,
|
|
6210
|
-
void 0,
|
|
6211
|
-
{ onStatus: () => {
|
|
6212
|
-
}, onComplete: () => {
|
|
6213
|
-
}, onError: () => {
|
|
6214
|
-
} },
|
|
6215
|
-
inlineFailingChecks.map((c) => ({ name: c.name, suggestion: c.suggestion, fix: c.fix })),
|
|
6216
|
-
inlineScore.score,
|
|
6217
|
-
inlineScore.checks.filter((c) => c.passed).map((c) => ({ name: c.name })),
|
|
6218
|
-
{ skipSkills: true, forceTargetedFix: true }
|
|
6219
|
-
);
|
|
6220
|
-
if (polishResult.setup) {
|
|
6221
|
-
generatedSetup = polishResult.setup;
|
|
6222
|
-
writeSetup(generatedSetup);
|
|
6223
|
-
log(options.verbose, "Inline polish applied");
|
|
6224
|
-
}
|
|
6225
|
-
} catch {
|
|
6226
|
-
log(options.verbose, "Inline polish failed, continuing with original");
|
|
6227
|
-
}
|
|
6228
|
-
}
|
|
6229
|
-
}
|
|
6230
|
-
try {
|
|
6231
|
-
undoSetup();
|
|
6232
|
-
} catch {
|
|
6233
|
-
}
|
|
6234
|
-
}
|
|
6235
6198
|
const elapsedMs = Date.now() - genStartTime;
|
|
6236
6199
|
trackInitGenerationCompleted(elapsedMs, 0);
|
|
6237
6200
|
const mins = Math.floor(elapsedMs / 6e4);
|
package/package.json
CHANGED