@rely-ai/caliber 1.22.0-dev.1773744838 → 1.22.0-dev.1773745340
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 +12 -4
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -114,10 +114,13 @@ function getDisplayModel(config) {
|
|
|
114
114
|
}
|
|
115
115
|
function getFastModel() {
|
|
116
116
|
if (process.env.CALIBER_FAST_MODEL) return process.env.CALIBER_FAST_MODEL;
|
|
117
|
-
if (process.env.ANTHROPIC_SMALL_FAST_MODEL) return process.env.ANTHROPIC_SMALL_FAST_MODEL;
|
|
118
117
|
const config = loadConfig();
|
|
118
|
+
const provider = config?.provider;
|
|
119
|
+
if (process.env.ANTHROPIC_SMALL_FAST_MODEL && (!provider || provider === "anthropic" || provider === "vertex")) {
|
|
120
|
+
return process.env.ANTHROPIC_SMALL_FAST_MODEL;
|
|
121
|
+
}
|
|
119
122
|
if (config?.fastModel) return config.fastModel;
|
|
120
|
-
if (
|
|
123
|
+
if (provider) return DEFAULT_FAST_MODELS[provider];
|
|
121
124
|
return void 0;
|
|
122
125
|
}
|
|
123
126
|
var CONFIG_DIR, CONFIG_FILE, DEFAULT_MODELS, DEFAULT_FAST_MODELS;
|
|
@@ -130,7 +133,7 @@ var init_config = __esm({
|
|
|
130
133
|
anthropic: "claude-sonnet-4-6",
|
|
131
134
|
vertex: "claude-sonnet-4-6",
|
|
132
135
|
openai: "gpt-4.1",
|
|
133
|
-
cursor: "
|
|
136
|
+
cursor: "auto",
|
|
134
137
|
"claude-cli": "default"
|
|
135
138
|
};
|
|
136
139
|
DEFAULT_FAST_MODELS = {
|
|
@@ -1227,7 +1230,11 @@ var CursorAcpProvider = class {
|
|
|
1227
1230
|
}
|
|
1228
1231
|
async runAcpPrompt(options, callbacks) {
|
|
1229
1232
|
const combinedPrompt = this.buildCombinedPrompt(options);
|
|
1233
|
+
const model = options.model || this.defaultModel;
|
|
1230
1234
|
const args = ["acp"];
|
|
1235
|
+
if (model && model !== "auto" && model !== "default") {
|
|
1236
|
+
args.unshift("--model", model);
|
|
1237
|
+
}
|
|
1231
1238
|
if (this.cursorApiKey) {
|
|
1232
1239
|
args.unshift("--api-key", this.cursorApiKey);
|
|
1233
1240
|
}
|
|
@@ -1745,6 +1752,7 @@ async function validateModel(options) {
|
|
|
1745
1752
|
const provider = getProvider();
|
|
1746
1753
|
const config = cachedConfig;
|
|
1747
1754
|
if (!config) return;
|
|
1755
|
+
if (config.provider === "cursor" || config.provider === "claude-cli") return;
|
|
1748
1756
|
const modelsToCheck = [config.model];
|
|
1749
1757
|
if (options?.fast) {
|
|
1750
1758
|
const { getFastModel: getFastModel2 } = await Promise.resolve().then(() => (init_config(), config_exports));
|
|
@@ -4043,7 +4051,7 @@ async function runInteractiveProviderSetup(options) {
|
|
|
4043
4051
|
break;
|
|
4044
4052
|
}
|
|
4045
4053
|
case "cursor": {
|
|
4046
|
-
config.model =
|
|
4054
|
+
config.model = DEFAULT_MODELS.cursor;
|
|
4047
4055
|
if (!isCursorAgentAvailable()) {
|
|
4048
4056
|
console.log(chalk5.yellow("\n Cursor Agent CLI not found."));
|
|
4049
4057
|
console.log(chalk5.dim(" Install it: ") + chalk5.hex("#83D1EB")("curl https://cursor.com/install -fsS | bash"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rely-ai/caliber",
|
|
3
|
-
"version": "1.22.0-dev.
|
|
3
|
+
"version": "1.22.0-dev.1773745340",
|
|
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": {
|