@boxcrew/cli 0.1.10 → 0.1.12
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/index.js +14 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -517,6 +517,10 @@ function runDaemon(agentName) {
|
|
|
517
517
|
const { messageId, message, sessionId } = msg;
|
|
518
518
|
const childEnv = { ...process.env };
|
|
519
519
|
delete childEnv.CLAUDECODE;
|
|
520
|
+
delete childEnv.CLAUDE_CODE_ENTRYPOINT;
|
|
521
|
+
for (const key of Object.keys(childEnv)) {
|
|
522
|
+
if (key.startsWith("_BX_")) delete childEnv[key];
|
|
523
|
+
}
|
|
520
524
|
let cmd;
|
|
521
525
|
let args;
|
|
522
526
|
if (runtime === "opencode") {
|
|
@@ -683,16 +687,19 @@ function registerConnectCommand(program2) {
|
|
|
683
687
|
);
|
|
684
688
|
const logFile = getLogFile(agentName);
|
|
685
689
|
const logFd = openSync(logFile, "a");
|
|
690
|
+
const daemonEnv = {
|
|
691
|
+
...process.env,
|
|
692
|
+
_BX_WS_URL: config2.websocket_url,
|
|
693
|
+
_BX_CLAUDE_PATH: options.claudePath,
|
|
694
|
+
_BX_AGENT_NAME: config2.agent_name,
|
|
695
|
+
_BX_RUNTIME: config2.runtime
|
|
696
|
+
};
|
|
697
|
+
delete daemonEnv.CLAUDECODE;
|
|
698
|
+
delete daemonEnv.CLAUDE_CODE_ENTRYPOINT;
|
|
686
699
|
const child = spawn(process.argv[0], [process.argv[1], "_daemon", agentName], {
|
|
687
700
|
detached: true,
|
|
688
701
|
stdio: ["ignore", logFd, logFd],
|
|
689
|
-
env:
|
|
690
|
-
...process.env,
|
|
691
|
-
_BX_WS_URL: config2.websocket_url,
|
|
692
|
-
_BX_CLAUDE_PATH: options.claudePath,
|
|
693
|
-
_BX_AGENT_NAME: config2.agent_name,
|
|
694
|
-
_BX_RUNTIME: config2.runtime
|
|
695
|
-
}
|
|
702
|
+
env: daemonEnv
|
|
696
703
|
});
|
|
697
704
|
child.unref();
|
|
698
705
|
const runtimeNames = {
|