UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

13 lines • 577 B
/** * Splits a shell command into the simple commands the `auto` preset can judge one by one. * * Only plain words joined by `;` or `&&` are understood. Quotes, escapes, expansions (`$`, `~`, * globs), redirects, pipes, background jobs, subshells, comments and line breaks return undefined, * and the caller asks the user. */ export interface ShellWord { readonly text: string; } export type ShellSegment = readonly ShellWord[]; export declare function splitShellSegments(command: string): ShellSegment[] | undefined; //# sourceMappingURL=auto-shell-segments.d.ts.map