my harness for niri
1/** Result shape returned by text-editing tool operations. */
2export interface EditResult {
3 ok: boolean
4 message: string
5}
6
7/** Normalized image payload ready for model input. */
8export interface ModelImageInput {
9 path: string
10 mime: string
11 bytes: number
12 dataUrl: string
13}
14
15/** Options for the low-level PTY command runner. */
16export interface RunRawOptions {
17 timeoutMs?: number
18 redirectStdinToDevNull?: boolean
19}
20
21/** JSON payload contract emitted by the in-container image helper script. */
22export interface ImageToolPayload {
23 ok?: boolean
24 message?: string
25 path?: string
26 mime?: string
27 bytes?: number
28 data_url?: string
29}