@rely-ai/caliber 1.11.1 → 1.11.2

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 +14 -3
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -6398,21 +6398,32 @@ async function evaluateDismissals(failingChecks, fingerprint) {
6398
6398
  name: c.name,
6399
6399
  suggestion: c.suggestion
6400
6400
  }));
6401
+ const hasBuildFiles = fingerprint.fileTree.some(
6402
+ (f) => /^(package\.json|Makefile|Cargo\.toml|go\.mod|pyproject\.toml|requirements\.txt|build\.gradle|pom\.xml)$/i.test(f.split("/").pop() || "")
6403
+ );
6404
+ const topFiles = fingerprint.fileTree.slice(0, 30).join(", ");
6401
6405
  try {
6402
6406
  const result = await llmJsonCall({
6403
6407
  system: `You evaluate whether scoring checks are applicable to a project.
6404
- Given the project's languages/frameworks and a list of failing checks, return which checks are NOT applicable.
6408
+ Given the project context and a list of failing checks, return which checks are NOT applicable.
6409
+
6410
+ Only dismiss checks that truly don't apply. Examples:
6411
+ - "Build/test/lint commands" for a GitOps/Helm/Terraform/config repo with no build system
6412
+ - "Build/test/lint commands" for a repo with only YAML, HCL, or config files and no package.json/Makefile
6413
+ - "Dependency coverage" for a repo with no package manager
6405
6414
 
6406
- Only dismiss checks that truly don't apply \u2014 e.g. "Build/test/lint commands" for a pure Terraform/HCL repo with no build system.
6407
6415
  Do NOT dismiss checks that could reasonably apply even if the project doesn't use them yet.
6408
6416
 
6409
6417
  Return {"dismissed": [{"id": "check_id", "reason": "brief reason"}]} or {"dismissed": []} if all apply.`,
6410
6418
  prompt: `Languages: ${fingerprint.languages.join(", ") || "none"}
6411
6419
  Frameworks: ${fingerprint.frameworks.join(", ") || "none"}
6420
+ Tools: ${fingerprint.tools.join(", ") || "none"}
6421
+ Has build files (package.json, Makefile, etc.): ${hasBuildFiles ? "yes" : "no"}
6422
+ Top files: ${topFiles}
6412
6423
 
6413
6424
  Failing checks:
6414
6425
  ${JSON.stringify(checkList, null, 2)}`,
6415
- maxTokens: 200,
6426
+ maxTokens: 300,
6416
6427
  ...fastModel ? { model: fastModel } : {}
6417
6428
  });
6418
6429
  if (!Array.isArray(result.dismissed)) return [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rely-ai/caliber",
3
- "version": "1.11.1",
3
+ "version": "1.11.2",
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": {