@nomad-e/bluma-cli 0.1.21 → 0.1.22
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 +8 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -7756,6 +7756,12 @@ async function runAgentMode() {
|
|
|
7756
7756
|
process.exit(1);
|
|
7757
7757
|
return;
|
|
7758
7758
|
}
|
|
7759
|
+
if (envelope.metadata?.sandbox === true) {
|
|
7760
|
+
process.env.BLUMA_SANDBOX = "true";
|
|
7761
|
+
if (envelope.metadata?.sandbox_name) {
|
|
7762
|
+
process.env.BLUMA_SANDBOX_NAME = String(envelope.metadata.sandbox_name);
|
|
7763
|
+
}
|
|
7764
|
+
}
|
|
7759
7765
|
const eventBus = new EventEmitter2();
|
|
7760
7766
|
const sessionId = envelope.message_id || uuidv43();
|
|
7761
7767
|
let lastAssistantMessage = null;
|
|
@@ -7837,11 +7843,10 @@ async function runAgentMode() {
|
|
|
7837
7843
|
await agent.initialize();
|
|
7838
7844
|
const userContent = JSON.stringify({
|
|
7839
7845
|
message_id: envelope.message_id || sessionId,
|
|
7840
|
-
from_agent: envelope.from_agent || "
|
|
7846
|
+
from_agent: envelope.from_agent || "unknown",
|
|
7841
7847
|
to_agent: envelope.to_agent || "bluma",
|
|
7842
7848
|
action: envelope.action || "unknown",
|
|
7843
|
-
context: envelope.context || {}
|
|
7844
|
-
metadata: envelope.metadata || {}
|
|
7849
|
+
context: envelope.context || {}
|
|
7845
7850
|
});
|
|
7846
7851
|
await agent.processTurn({ content: userContent });
|
|
7847
7852
|
if (!resultEmitted) {
|