MCPcopy Create free account
hub / github.com/agent-tower/core / sendMessage

Function sendMessage

packages/server/src/executors/base.executor.ts:506–508  ·  view source on GitHub ↗

* 向 PTY 发送消息

(ptyInstance: IPty, message: string)

Source from the content-addressed store, hash-verified

504 throw markPreChildProcessFailure(error);
505 }
506 const verifyCleanup = () => cleanupChannel.isCompleted();
507 const wrapperEnv = buildPtyWrapperEnv(fullEnv, process.env, ownershipToken, cleanupChannel.env);
508 ptyLog(0, `Spawning: ${programPath} ${redactArgsForLog(fullArgs.slice(0, -1))} ... <prompt>`);
509 ptyLog(0, `ENV ANTHROPIC_BASE_URL=${fullEnv.ANTHROPIC_BASE_URL || '(not set)'}`);
510 ptyLog(0, `ENV ANTHROPIC_API_KEY=${fullEnv.ANTHROPIC_API_KEY ? '(set)' : '(not set)'}`);
511 ptyLog(0, `ENV ANTHROPIC_AUTH_TOKEN=${fullEnv.ANTHROPIC_AUTH_TOKEN ? '(set)' : '(not set)'}`);

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected