@openagents-org/agent-launcher 0.2.76 → 0.2.78
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/package.json
CHANGED
package/src/adapters/base.js
CHANGED
|
@@ -39,6 +39,7 @@ class BaseAdapter {
|
|
|
39
39
|
this.endpoint = endpoint || DEFAULT_ENDPOINT;
|
|
40
40
|
this.agentEnv = agentEnv || process.env;
|
|
41
41
|
this.agentType = agentType;
|
|
42
|
+
this.workingDir = opts.workingDir || undefined;
|
|
42
43
|
this.client = new WorkspaceClient(this.endpoint);
|
|
43
44
|
this._lastEventId = null;
|
|
44
45
|
this._running = false;
|
package/src/adapters/claude.js
CHANGED
|
@@ -31,7 +31,6 @@ class ClaudeAdapter extends BaseAdapter {
|
|
|
31
31
|
constructor(opts) {
|
|
32
32
|
super(opts);
|
|
33
33
|
this.disabledModules = opts.disabledModules || new Set();
|
|
34
|
-
this.workingDir = opts.workingDir || undefined;
|
|
35
34
|
this._channelSessions = {}; // channel → Claude CLI session_id
|
|
36
35
|
this._channelProcesses = {}; // channel → child process
|
|
37
36
|
this._sessionsFile = path.join(
|
package/src/adapters/openclaw.js
CHANGED
|
@@ -257,6 +257,7 @@ class OpenClawAdapter extends BaseAdapter {
|
|
|
257
257
|
const proc = spawn(spawnBin, spawnArgs, {
|
|
258
258
|
stdio: ['ignore', 'pipe', stderrFd],
|
|
259
259
|
env: spawnEnv,
|
|
260
|
+
cwd: this.workingDir || process.env.HOME || '/',
|
|
260
261
|
timeout: 600000,
|
|
261
262
|
windowsHide: true,
|
|
262
263
|
});
|
package/src/adapters/opencode.js
CHANGED
|
@@ -30,7 +30,6 @@ class OpenCodeAdapter extends BaseAdapter {
|
|
|
30
30
|
constructor(opts) {
|
|
31
31
|
super(opts);
|
|
32
32
|
this.disabledModules = opts.disabledModules || new Set();
|
|
33
|
-
this.workingDir = opts.workingDir || undefined;
|
|
34
33
|
|
|
35
34
|
// Agent home directory: ~/.openagents/agents/{agentName}/
|
|
36
35
|
this.agentHome = path.join(os.homedir(), '.openagents', 'agents', this.agentName);
|