@rely-ai/caliber 0.6.0 → 0.7.0

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 +11 -5
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -1011,11 +1011,13 @@ var ClaudeCliProvider = class {
1011
1011
  }
1012
1012
  async call(options) {
1013
1013
  const combined = this.buildCombinedPrompt(options);
1014
- return this.runClaudePrint(combined);
1014
+ return this.runClaudePrint(combined, options.model);
1015
1015
  }
1016
1016
  async stream(options, callbacks) {
1017
1017
  const combined = this.buildCombinedPrompt(options);
1018
- const child = spawn2(CLAUDE_CLI_BIN, ["-p", combined], {
1018
+ const args = ["-p", combined];
1019
+ if (options.model) args.push("--model", options.model);
1020
+ const child = spawn2(CLAUDE_CLI_BIN, args, {
1019
1021
  cwd: process.cwd(),
1020
1022
  stdio: ["ignore", "pipe", "inherit"],
1021
1023
  env: process.env
@@ -1073,9 +1075,11 @@ ${msg.content}
1073
1075
  combined += "[[User]]\n" + options.prompt;
1074
1076
  return combined;
1075
1077
  }
1076
- runClaudePrint(combinedPrompt) {
1078
+ runClaudePrint(combinedPrompt, model) {
1077
1079
  return new Promise((resolve2, reject) => {
1078
- const child = spawn2(CLAUDE_CLI_BIN, ["-p", combinedPrompt], {
1080
+ const args = ["-p", combinedPrompt];
1081
+ if (model) args.push("--model", model);
1082
+ const child = spawn2(CLAUDE_CLI_BIN, args, {
1079
1083
  cwd: process.cwd(),
1080
1084
  stdio: ["ignore", "pipe", "inherit"],
1081
1085
  env: process.env
@@ -1494,9 +1498,11 @@ async function detectFrameworks(fileTree, fileContents) {
1494
1498
  parts.push(content);
1495
1499
  }
1496
1500
  }
1501
+ const fastModel = process.env.ANTHROPIC_SMALL_FAST_MODEL;
1497
1502
  const result = await llmJsonCall({
1498
1503
  system: FINGERPRINT_SYSTEM_PROMPT,
1499
- prompt: parts.join("\n")
1504
+ prompt: parts.join("\n"),
1505
+ ...fastModel ? { model: fastModel } : {}
1500
1506
  });
1501
1507
  return {
1502
1508
  languages: Array.isArray(result.languages) ? result.languages : [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rely-ai/caliber",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
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": {