@rely-ai/caliber 1.12.4 → 1.12.6
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 +18 -10
- package/package.json +5 -5
package/dist/bin.js
CHANGED
|
@@ -1843,8 +1843,9 @@ Only include items you're confident about. Return ONLY the JSON object.`;
|
|
|
1843
1843
|
async function detectProjectStack(fileTree, fileContents) {
|
|
1844
1844
|
const parts = ["Analyze this project and detect languages, frameworks, and external tools/services.\n"];
|
|
1845
1845
|
if (fileTree.length > 0) {
|
|
1846
|
-
|
|
1847
|
-
parts.push(fileTree.
|
|
1846
|
+
const cappedTree = fileTree.slice(0, 500);
|
|
1847
|
+
parts.push(`File tree (${cappedTree.length}/${fileTree.length} entries):`);
|
|
1848
|
+
parts.push(cappedTree.join("\n"));
|
|
1848
1849
|
}
|
|
1849
1850
|
if (Object.keys(fileContents).length > 0) {
|
|
1850
1851
|
parts.push("\nDependency file contents:");
|
|
@@ -2407,7 +2408,14 @@ These checks are currently PASSING \u2014 do NOT break them:`);
|
|
|
2407
2408
|
}
|
|
2408
2409
|
}
|
|
2409
2410
|
parts.push(`
|
|
2410
|
-
IMPORTANT
|
|
2411
|
+
IMPORTANT RULES FOR TARGETED FIX:
|
|
2412
|
+
- Return the existing CLAUDE.md and skills with MINIMAL changes \u2014 only the edits needed to fix the above checks.
|
|
2413
|
+
- Do NOT rewrite, restructure, rephrase, or make cosmetic changes.
|
|
2414
|
+
- Preserve the existing content as-is except for targeted fixes.
|
|
2415
|
+
- If a skill file is not related to a failing check, return it EXACTLY as-is, character for character.
|
|
2416
|
+
- For "Documented commands exist": DELETE the specific invalid commands listed in the suggestion. Do NOT replace them with other commands unless you are 100% certain they exist.
|
|
2417
|
+
- For "Documented paths exist": DELETE the specific non-existent paths listed in the suggestion. Do NOT replace them with guessed paths.
|
|
2418
|
+
- For "Concise context files": Remove the least important lines to get under the line limit. Do NOT add new content.`);
|
|
2411
2419
|
} else if (hasExistingConfigs) {
|
|
2412
2420
|
parts.push(`Audit and improve the existing coding agent configuration for target: ${targetAgent}`);
|
|
2413
2421
|
} else {
|
|
@@ -3193,15 +3201,15 @@ function collectSetupFiles(setup) {
|
|
|
3193
3201
|
if (claude) agentRefs.push("See `CLAUDE.md` for Claude Code configuration.");
|
|
3194
3202
|
if (cursor) agentRefs.push("See `.cursor/rules/` for Cursor rules.");
|
|
3195
3203
|
if (agentRefs.length === 0) agentRefs.push("See CLAUDE.md and .cursor/rules/ for agent configurations.");
|
|
3196
|
-
|
|
3197
|
-
path: "AGENTS.md",
|
|
3198
|
-
content: `# AGENTS.md
|
|
3204
|
+
const stubContent = `# AGENTS.md
|
|
3199
3205
|
|
|
3200
3206
|
This project uses AI coding agents configured by [Caliber](https://github.com/rely-ai-org/caliber).
|
|
3201
3207
|
|
|
3202
3208
|
${agentRefs.join(" ")}
|
|
3203
|
-
|
|
3204
|
-
});
|
|
3209
|
+
`;
|
|
3210
|
+
files.push({ path: "AGENTS.md", content: stubContent });
|
|
3211
|
+
if (!setup.codex) setup.codex = {};
|
|
3212
|
+
setup.codex.agentsMd = stubContent;
|
|
3205
3213
|
}
|
|
3206
3214
|
return files;
|
|
3207
3215
|
}
|
|
@@ -4398,7 +4406,7 @@ function checkAccuracy(dir) {
|
|
|
4398
4406
|
earnedPoints: cmdPoints,
|
|
4399
4407
|
passed: cmdRatio >= 0.8,
|
|
4400
4408
|
detail: cmds.total === 0 ? "No commands documented" : `${cmds.valid.length}/${cmds.total} commands verified`,
|
|
4401
|
-
suggestion: cmds.invalid.length > 0 ? `
|
|
4409
|
+
suggestion: cmds.invalid.length > 0 ? `Remove these invalid commands from CLAUDE.md: ${cmds.invalid.join("; ")}` : void 0
|
|
4402
4410
|
});
|
|
4403
4411
|
const paths = validateDocumentedPaths(dir);
|
|
4404
4412
|
const pathRatio = paths.total > 0 ? paths.valid.length / paths.total : 1;
|
|
@@ -4411,7 +4419,7 @@ function checkAccuracy(dir) {
|
|
|
4411
4419
|
earnedPoints: pathPoints,
|
|
4412
4420
|
passed: pathRatio >= 0.8,
|
|
4413
4421
|
detail: paths.total === 0 ? "No file paths documented" : `${paths.valid.length}/${paths.total} paths verified`,
|
|
4414
|
-
suggestion: paths.invalid.length > 0 ? `
|
|
4422
|
+
suggestion: paths.invalid.length > 0 ? `Remove these non-existent paths from CLAUDE.md: ${paths.invalid.join("; ")}` : void 0
|
|
4415
4423
|
});
|
|
4416
4424
|
const drift = detectConfigDrift(dir);
|
|
4417
4425
|
let driftPoints = POINTS_CONFIG_DRIFT;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rely-ai/caliber",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.6",
|
|
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": {
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
"test:coverage": "vitest run --coverage"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@anthropic-ai/sdk": "^0.
|
|
18
|
-
"@anthropic-ai/vertex-sdk": "^0.
|
|
17
|
+
"@anthropic-ai/sdk": "^0.78.0",
|
|
18
|
+
"@anthropic-ai/vertex-sdk": "^0.14.4",
|
|
19
19
|
"@inquirer/checkbox": "^5.1.0",
|
|
20
20
|
"@inquirer/confirm": "^6.0.8",
|
|
21
21
|
"@inquirer/select": "^5.1.0",
|
|
22
22
|
"chalk": "^5.4.0",
|
|
23
23
|
"commander": "^13.0.0",
|
|
24
24
|
"diff": "^8.0.3",
|
|
25
|
-
"glob": "^
|
|
25
|
+
"glob": "^13.0.6",
|
|
26
26
|
"google-auth-library": "^9.0.0",
|
|
27
|
-
"openai": "^
|
|
27
|
+
"openai": "^6.29.0",
|
|
28
28
|
"ora": "^8.1.0",
|
|
29
29
|
"posthog-node": "^5.28.2"
|
|
30
30
|
},
|