@nomad-e/bluma-cli 0.1.7 → 0.1.8
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/main.js +9 -9
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -4805,7 +4805,7 @@ var ToolCallNormalizer = class {
|
|
|
4805
4805
|
// src/app/agent/bluma/core/bluma.ts
|
|
4806
4806
|
var BluMaAgent = class {
|
|
4807
4807
|
llm;
|
|
4808
|
-
|
|
4808
|
+
model;
|
|
4809
4809
|
sessionId;
|
|
4810
4810
|
sessionFile = "";
|
|
4811
4811
|
history = [];
|
|
@@ -4815,11 +4815,11 @@ var BluMaAgent = class {
|
|
|
4815
4815
|
skillLoader;
|
|
4816
4816
|
maxContextTurns = 30;
|
|
4817
4817
|
isInterrupted = false;
|
|
4818
|
-
constructor(sessionId2, eventBus2, llm,
|
|
4818
|
+
constructor(sessionId2, eventBus2, llm, model, mcpClient, feedbackSystem) {
|
|
4819
4819
|
this.sessionId = sessionId2;
|
|
4820
4820
|
this.eventBus = eventBus2;
|
|
4821
4821
|
this.llm = llm;
|
|
4822
|
-
this.
|
|
4822
|
+
this.model = model;
|
|
4823
4823
|
this.mcpClient = mcpClient;
|
|
4824
4824
|
this.feedbackSystem = feedbackSystem;
|
|
4825
4825
|
this.skillLoader = new SkillLoader(process.cwd());
|
|
@@ -5159,9 +5159,9 @@ ${editData.error.display}`;
|
|
|
5159
5159
|
}
|
|
5160
5160
|
async _handleNonStreamingResponse(contextWindow) {
|
|
5161
5161
|
const response = await this.llm.chatCompletion({
|
|
5162
|
-
model:
|
|
5162
|
+
model: this.model,
|
|
5163
5163
|
messages: contextWindow,
|
|
5164
|
-
temperature: 0
|
|
5164
|
+
temperature: 0,
|
|
5165
5165
|
tools: this.mcpClient.getAvailableTools(),
|
|
5166
5166
|
tool_choice: "required",
|
|
5167
5167
|
parallel_tool_calls: false
|
|
@@ -5701,7 +5701,7 @@ var SubAgentsBluMa = class {
|
|
|
5701
5701
|
mcpClient;
|
|
5702
5702
|
toolInvoker;
|
|
5703
5703
|
llm;
|
|
5704
|
-
|
|
5704
|
+
model;
|
|
5705
5705
|
projectRoot;
|
|
5706
5706
|
policy;
|
|
5707
5707
|
logger;
|
|
@@ -5710,7 +5710,7 @@ var SubAgentsBluMa = class {
|
|
|
5710
5710
|
this.mcpClient = params.mcpClient;
|
|
5711
5711
|
this.toolInvoker = params.toolInvoker;
|
|
5712
5712
|
this.llm = params.llm;
|
|
5713
|
-
this.
|
|
5713
|
+
this.model = params.model;
|
|
5714
5714
|
this.projectRoot = params.projectRoot || process.cwd();
|
|
5715
5715
|
this.policy = params.policy;
|
|
5716
5716
|
this.logger = params.logger;
|
|
@@ -5735,7 +5735,7 @@ var SubAgentsBluMa = class {
|
|
|
5735
5735
|
mcpClient: this.mcpClient,
|
|
5736
5736
|
toolInvoker: this.toolInvoker,
|
|
5737
5737
|
llm: this.llm,
|
|
5738
|
-
policy: { llmDeployment: this.
|
|
5738
|
+
policy: { llmDeployment: this.model, ...this.policy || {} },
|
|
5739
5739
|
logger: this.logger
|
|
5740
5740
|
};
|
|
5741
5741
|
const inputForAgent = content ?? JSON.stringify({ content, ...rest });
|
|
@@ -5858,7 +5858,7 @@ var Agent = class {
|
|
|
5858
5858
|
mcpClient: this.mcpClient,
|
|
5859
5859
|
toolInvoker: this.toolInvoker,
|
|
5860
5860
|
llm: this.llm,
|
|
5861
|
-
|
|
5861
|
+
model: this.model,
|
|
5862
5862
|
projectRoot: process.cwd()
|
|
5863
5863
|
});
|
|
5864
5864
|
this.routeManager = new RouteManager(this.subAgents, this.core);
|