@rely-ai/caliber 1.14.2 → 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 -55
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -6195,61 +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
|
-
const origClaude = generatedSetup.claude;
|
|
6222
|
-
const origCodex = generatedSetup.codex;
|
|
6223
|
-
const origCursor = generatedSetup.cursor;
|
|
6224
|
-
generatedSetup = polishResult.setup;
|
|
6225
|
-
const polishedClaude = generatedSetup.claude ?? {};
|
|
6226
|
-
const polishedCodex = generatedSetup.codex ?? {};
|
|
6227
|
-
const polishedCursor = generatedSetup.cursor ?? {};
|
|
6228
|
-
if (origClaude?.skills && !polishedClaude.skills) {
|
|
6229
|
-
polishedClaude.skills = origClaude.skills;
|
|
6230
|
-
generatedSetup.claude = polishedClaude;
|
|
6231
|
-
}
|
|
6232
|
-
if (origCodex?.skills && !polishedCodex.skills) {
|
|
6233
|
-
polishedCodex.skills = origCodex.skills;
|
|
6234
|
-
generatedSetup.codex = polishedCodex;
|
|
6235
|
-
}
|
|
6236
|
-
if (origCursor?.skills && !polishedCursor.skills) {
|
|
6237
|
-
polishedCursor.skills = origCursor.skills;
|
|
6238
|
-
generatedSetup.cursor = polishedCursor;
|
|
6239
|
-
}
|
|
6240
|
-
writeSetup(generatedSetup);
|
|
6241
|
-
log(options.verbose, "Inline polish applied");
|
|
6242
|
-
}
|
|
6243
|
-
} catch {
|
|
6244
|
-
log(options.verbose, "Inline polish failed, continuing with original");
|
|
6245
|
-
}
|
|
6246
|
-
}
|
|
6247
|
-
}
|
|
6248
|
-
try {
|
|
6249
|
-
undoSetup();
|
|
6250
|
-
} catch {
|
|
6251
|
-
}
|
|
6252
|
-
}
|
|
6253
6198
|
const elapsedMs = Date.now() - genStartTime;
|
|
6254
6199
|
trackInitGenerationCompleted(elapsedMs, 0);
|
|
6255
6200
|
const mins = Math.floor(elapsedMs / 6e4);
|
package/package.json
CHANGED