@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
21 lines • 929 B
TypeScript
/**
* Strip terminal control sequences from text that reaches an ANSI-preserving
* chat row. Error text can carry provider-controlled bytes — a JSON error body
* may decode `\u001b` escapes into live OSC/CSI sequences — so anything routed
* to `Text` is sanitized first.
*/
export declare function sanitizeTuiErrorMessage(value: string): string;
/**
* Headline for an extension-error line in the chat log.
*
* Errors emitted by the session runtime itself (extensionPath `<runtime>`,
* e.g. background session-title generation) are not extension failures, so
* they render as runtime errors labeled with the emitting event instead of a
* confusing `Extension "<runtime>" error:` attribution.
*/
export declare function formatExtensionErrorHeadline(error: {
readonly extensionPath: string;
readonly event?: string;
readonly error: string;
}): string;
//# sourceMappingURL=extension-error-format.d.ts.map