(values: string[])
| 933 | } |
| 934 | |
| 935 | async function* asyncIterableFromArray(values: string[]): AsyncIterable<string> { |
| 936 | for (const value of values) yield value; |
| 937 | } |
| 938 | |
| 939 | async function* readPromptsFromStdin(inputFormat: "text" | "stream-json"): AsyncIterable<string> { |
| 940 | if (inputFormat === "text") { |