@rely-ai/caliber 0.6.0 → 0.7.1
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 +14 -7
- 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
|
|
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
|
|
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 : [],
|
|
@@ -3837,8 +3843,9 @@ async function initCommand(options) {
|
|
|
3837
3843
|
console.log(chalk4.green(" \u2713 Provider saved. Continuing with init.\n"));
|
|
3838
3844
|
}
|
|
3839
3845
|
const displayModel = config.model === "default" && config.provider === "claude-cli" ? process.env.ANTHROPIC_MODEL || "default (inherited from Claude Code)" : config.model;
|
|
3840
|
-
|
|
3841
|
-
`
|
|
3846
|
+
const fastModel = process.env.ANTHROPIC_SMALL_FAST_MODEL;
|
|
3847
|
+
const modelLine = fastModel ? ` Provider: ${config.provider} | Model: ${displayModel} | Scan: ${fastModel}` : ` Provider: ${config.provider} | Model: ${displayModel}`;
|
|
3848
|
+
console.log(chalk4.dim(modelLine + "\n"));
|
|
3842
3849
|
console.log(title.bold(" Step 2/4 \u2014 Scan project\n"));
|
|
3843
3850
|
console.log(chalk4.dim(" Detecting languages, dependencies, file structure, and existing configs.\n"));
|
|
3844
3851
|
const spinner = ora("Analyzing project...").start();
|
package/package.json
CHANGED