@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
20 lines • 1.05 kB
TypeScript
import type { AgentToolUpdateCallback } from "@earendil-works/pi-agent-core";
import type { TextContent } from "@earendil-works/pi-ai";
import type { BashToolDetails } from "./bash-schema.ts";
import type { OutputAccumulator, OutputSnapshot } from "./output-accumulator-core.ts";
export interface FormattedShellOutput {
text: string;
content: TextContent[];
details: BashToolDetails | undefined;
}
/**
* One shell run's output stream: optional secret redaction per stream, throttled partial updates, and the terminal
* flush that settles the spill before the result is built.
*/
export declare function createShellOutput(output: OutputAccumulator, onUpdate: AgentToolUpdateCallback<BashToolDetails | undefined> | undefined, redactSecretsInOutput: boolean): {
handleData: (data: Uint8Array, stream?: string) => void;
finishOutput: () => Promise<OutputSnapshot>;
formatOutput: (snapshot: OutputSnapshot, emptyText?: string) => FormattedShellOutput;
clearUpdateTimer: () => void;
};
//# sourceMappingURL=shell-output.d.ts.map