@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
30 lines • 890 B
TypeScript
/**
* One redactor per output stream. push() holds incomplete tokens; finish() seals EOF.
* flushIdle() publishes ordinary fragments but retains their logical token for re-evaluation.
*/
export declare class SecretOutputRedactor {
private token;
private rawToken;
private controls;
private escape;
private escapeText;
private oversized;
private bearer;
private value;
private quote;
private escaped;
private pem;
private pemTail;
private finished;
push(text: string): string;
/**
* Publish ordinary prompts without treating the pause as a token boundary.
* Once a public credential prefix is present, withhold the token until it ends.
*/
flushIdle(): string;
finish(): string;
private isSecret;
private startedPrefix;
private flushToken;
}
//# sourceMappingURL=secret-output-redactor.d.ts.map