multiclaws 0.4.22 → 0.4.23
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.
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.OpenClawAgentExecutor = void 0;
|
|
7
|
+
const node_os_1 = __importDefault(require("node:os"));
|
|
4
8
|
const gateway_client_1 = require("../infra/gateway-client");
|
|
5
9
|
function extractTextFromMessage(message) {
|
|
6
10
|
if (!message.parts)
|
|
@@ -80,6 +84,7 @@ class OpenClawAgentExecutor {
|
|
|
80
84
|
args: {
|
|
81
85
|
task: taskText,
|
|
82
86
|
mode: "run",
|
|
87
|
+
cwd: node_os_1.default.homedir(),
|
|
83
88
|
},
|
|
84
89
|
sessionKey: `a2a-${taskId}`,
|
|
85
90
|
timeoutMs: 15_000,
|
|
@@ -357,7 +357,7 @@ class MulticlawsService extends node_events_1.EventEmitter {
|
|
|
357
357
|
await (0, gateway_client_1.invokeGatewayTool)({
|
|
358
358
|
gateway: this.gatewayConfig,
|
|
359
359
|
tool: "sessions_spawn",
|
|
360
|
-
args: { task: prompt, mode: "run" },
|
|
360
|
+
args: { task: prompt, mode: "run", cwd: node_os_1.default.homedir() },
|
|
361
361
|
sessionKey: `delegate-${Date.now()}`,
|
|
362
362
|
timeoutMs: 15_000,
|
|
363
363
|
});
|