style: format linted files
This commit is contained in:
@@ -34,7 +34,10 @@ describe("bash tool pty mode", () => {
|
|||||||
onData = cb;
|
onData = cb;
|
||||||
},
|
},
|
||||||
onExit: (
|
onExit: (
|
||||||
cb: (event: { exitCode: number | null; signal?: number | null }) => void,
|
cb: (event: {
|
||||||
|
exitCode: number | null;
|
||||||
|
signal?: number | null;
|
||||||
|
}) => void,
|
||||||
) => {
|
) => {
|
||||||
onExit = cb;
|
onExit = cb;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -159,8 +159,7 @@ export function createBashTool(
|
|||||||
|
|
||||||
const { shell, args: shellArgs } = getShellConfig();
|
const { shell, args: shellArgs } = getShellConfig();
|
||||||
const env = params.env ? { ...process.env, ...params.env } : process.env;
|
const env = params.env ? { ...process.env, ...params.env } : process.env;
|
||||||
const requestedStdinMode =
|
const requestedStdinMode = params.stdinMode === "pty" ? "pty" : "pipe";
|
||||||
params.stdinMode === "pty" ? "pty" : "pipe";
|
|
||||||
let stdinMode: ProcessStdinMode = requestedStdinMode;
|
let stdinMode: ProcessStdinMode = requestedStdinMode;
|
||||||
let warning: string | null = null;
|
let warning: string | null = null;
|
||||||
let child: ChildProcessWithoutNullStreams | undefined;
|
let child: ChildProcessWithoutNullStreams | undefined;
|
||||||
|
|||||||
@@ -606,9 +606,7 @@ export async function getReplyFromConfig(
|
|||||||
agentCfg?.blockStreamingDefault === "off" ? "off" : "on";
|
agentCfg?.blockStreamingDefault === "off" ? "off" : "on";
|
||||||
// TODO(steipete): Default to message_end for now; figure out why text_end breaks and whether we can revert.
|
// TODO(steipete): Default to message_end for now; figure out why text_end breaks and whether we can revert.
|
||||||
const resolvedBlockStreamingBreak =
|
const resolvedBlockStreamingBreak =
|
||||||
agentCfg?.blockStreamingBreak === "text_end"
|
agentCfg?.blockStreamingBreak === "text_end" ? "text_end" : "message_end";
|
||||||
? "text_end"
|
|
||||||
: "message_end";
|
|
||||||
const blockStreamingEnabled = resolvedBlockStreaming === "on";
|
const blockStreamingEnabled = resolvedBlockStreaming === "on";
|
||||||
const streamedPayloadKeys = new Set<string>();
|
const streamedPayloadKeys = new Set<string>();
|
||||||
const pendingBlockTasks = new Set<Promise<void>>();
|
const pendingBlockTasks = new Set<Promise<void>>();
|
||||||
|
|||||||
Reference in New Issue
Block a user