@nomad-e/bluma-cli 0.1.79 → 0.1.80

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/main.js +9 -1
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -14871,6 +14871,7 @@ async function createApiContextWindow(fullHistory, currentAnchor, compressedTurn
14871
14871
 
14872
14872
  // src/app/agent/core/llm/llm.ts
14873
14873
  init_runtime_config();
14874
+ init_sandbox_policy();
14874
14875
  import os23 from "os";
14875
14876
  import OpenAI from "openai";
14876
14877
 
@@ -14985,10 +14986,17 @@ function buildVllmReasoningPayload(effort) {
14985
14986
  }
14986
14987
  };
14987
14988
  }
14989
+ function resolveReasoningEffortForRequest(params, runtimeConfig = getRuntimeConfig()) {
14990
+ const policy = getSandboxPolicy();
14991
+ if (policy.isSandbox) {
14992
+ return "low";
14993
+ }
14994
+ return params.reasoning?.effort ?? runtimeConfig.reasoningEffort;
14995
+ }
14988
14996
  function buildChatCompletionRequestBody(params, runtimeConfig = getRuntimeConfig(), stream = false) {
14989
14997
  const tools = params.tools;
14990
14998
  const hasTools = Array.isArray(tools) && tools.length > 0;
14991
- const effort = params.reasoning?.effort ?? runtimeConfig.reasoningEffort;
14999
+ const effort = resolveReasoningEffortForRequest(params, runtimeConfig);
14992
15000
  const reasoningPayload = buildVllmReasoningPayload(effort);
14993
15001
  return {
14994
15002
  model: params.model || runtimeConfig.model || "auto",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomad-e/bluma-cli",
3
- "version": "0.1.79",
3
+ "version": "0.1.80",
4
4
  "description": "BluMa independent agent for automation and advanced software engineering.",
5
5
  "author": "Alex Fonseca",
6
6
  "license": "Apache-2.0",