@bike4mind/cli 0.2.31-update-default-agent-models.19587 → 0.2.31-update-default-agent-models.19588
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.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// package.json
|
|
4
4
|
var package_default = {
|
|
5
5
|
name: "@bike4mind/cli",
|
|
6
|
-
version: "0.2.31-update-default-agent-models.
|
|
6
|
+
version: "0.2.31-update-default-agent-models.19588+07984ab96",
|
|
7
7
|
type: "module",
|
|
8
8
|
description: "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
9
9
|
license: "UNLICENSED",
|
|
@@ -114,10 +114,10 @@ var package_default = {
|
|
|
114
114
|
},
|
|
115
115
|
devDependencies: {
|
|
116
116
|
"@bike4mind/agents": "0.1.0",
|
|
117
|
-
"@bike4mind/common": "2.52.1-update-default-agent-models.
|
|
118
|
-
"@bike4mind/mcp": "1.31.1-update-default-agent-models.
|
|
119
|
-
"@bike4mind/services": "2.50.1-update-default-agent-models.
|
|
120
|
-
"@bike4mind/utils": "2.7.1-update-default-agent-models.
|
|
117
|
+
"@bike4mind/common": "2.52.1-update-default-agent-models.19588+07984ab96",
|
|
118
|
+
"@bike4mind/mcp": "1.31.1-update-default-agent-models.19588+07984ab96",
|
|
119
|
+
"@bike4mind/services": "2.50.1-update-default-agent-models.19588+07984ab96",
|
|
120
|
+
"@bike4mind/utils": "2.7.1-update-default-agent-models.19588+07984ab96",
|
|
121
121
|
"@types/better-sqlite3": "^7.6.13",
|
|
122
122
|
"@types/diff": "^5.0.9",
|
|
123
123
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -138,7 +138,7 @@ var package_default = {
|
|
|
138
138
|
optionalDependencies: {
|
|
139
139
|
"@vscode/ripgrep": "^1.17.0"
|
|
140
140
|
},
|
|
141
|
-
gitHead: "
|
|
141
|
+
gitHead: "07984ab96a1bc3b2e0c5a0e162380b2416252153"
|
|
142
142
|
};
|
|
143
143
|
|
|
144
144
|
// src/utils/updateChecker.ts
|
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
checkForUpdate,
|
|
18
18
|
package_default
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SXJBXHDD.js";
|
|
20
20
|
import {
|
|
21
21
|
selectActiveBackgroundAgents,
|
|
22
22
|
useCliStore
|
|
@@ -18163,7 +18163,16 @@ var SubagentOrchestrator = class {
|
|
|
18163
18163
|
const available = this.deps.agentStore.getAgentNames().join(", ");
|
|
18164
18164
|
throw new Error(`Unknown agent: "${agentName}". Available agents: ${available}`);
|
|
18165
18165
|
}
|
|
18166
|
-
|
|
18166
|
+
let effectiveModel = model || agentDef.model;
|
|
18167
|
+
if (!model && !agentDef.modelResolved) {
|
|
18168
|
+
const config = await this.deps.configStore.get();
|
|
18169
|
+
if (config?.defaultModel) {
|
|
18170
|
+
this.deps.logger.debug(
|
|
18171
|
+
`Agent "${agentName}" model unresolved, inheriting main session model: ${config.defaultModel}`
|
|
18172
|
+
);
|
|
18173
|
+
effectiveModel = config.defaultModel;
|
|
18174
|
+
}
|
|
18175
|
+
}
|
|
18167
18176
|
const effectiveThoroughness = thoroughness || agentDef.defaultThoroughness;
|
|
18168
18177
|
const maxIterations = agentDef.maxIterations[effectiveThoroughness];
|
|
18169
18178
|
const effectiveVariables = {
|
|
@@ -18478,7 +18487,7 @@ function resolveModelAlias(modelInput, agentName, filePath) {
|
|
|
18478
18487
|
}
|
|
18479
18488
|
const availableAliases = getAvailableModelAliases();
|
|
18480
18489
|
const suggestions = availableAliases.filter((alias) => alias.includes(normalizedInput) || normalizedInput.includes(alias)).slice(0, 5);
|
|
18481
|
-
let warning = `Unknown model "${modelInput}" in agent "${agentName}" (${filePath}).
|
|
18490
|
+
let warning = `Unknown model "${modelInput}" in agent "${agentName}" (${filePath}). Will inherit the main session model at runtime.
|
|
18482
18491
|
`;
|
|
18483
18492
|
if (suggestions.length > 0) {
|
|
18484
18493
|
warning += `Did you mean: ${suggestions.join(", ")}?
|
|
@@ -18601,7 +18610,8 @@ var AgentStore = class {
|
|
|
18601
18610
|
defaultVariables: parsed.variables,
|
|
18602
18611
|
hooks: parsed.hooks,
|
|
18603
18612
|
source,
|
|
18604
|
-
filePath
|
|
18613
|
+
filePath,
|
|
18614
|
+
modelResolved: resolution.resolved
|
|
18605
18615
|
};
|
|
18606
18616
|
}
|
|
18607
18617
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bike4mind/cli",
|
|
3
|
-
"version": "0.2.31-update-default-agent-models.
|
|
3
|
+
"version": "0.2.31-update-default-agent-models.19588+07984ab96",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -111,10 +111,10 @@
|
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
113
|
"@bike4mind/agents": "0.1.0",
|
|
114
|
-
"@bike4mind/common": "2.52.1-update-default-agent-models.
|
|
115
|
-
"@bike4mind/mcp": "1.31.1-update-default-agent-models.
|
|
116
|
-
"@bike4mind/services": "2.50.1-update-default-agent-models.
|
|
117
|
-
"@bike4mind/utils": "2.7.1-update-default-agent-models.
|
|
114
|
+
"@bike4mind/common": "2.52.1-update-default-agent-models.19588+07984ab96",
|
|
115
|
+
"@bike4mind/mcp": "1.31.1-update-default-agent-models.19588+07984ab96",
|
|
116
|
+
"@bike4mind/services": "2.50.1-update-default-agent-models.19588+07984ab96",
|
|
117
|
+
"@bike4mind/utils": "2.7.1-update-default-agent-models.19588+07984ab96",
|
|
118
118
|
"@types/better-sqlite3": "^7.6.13",
|
|
119
119
|
"@types/diff": "^5.0.9",
|
|
120
120
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -135,5 +135,5 @@
|
|
|
135
135
|
"optionalDependencies": {
|
|
136
136
|
"@vscode/ripgrep": "^1.17.0"
|
|
137
137
|
},
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "07984ab96a1bc3b2e0c5a0e162380b2416252153"
|
|
139
139
|
}
|