(prompt: RunPrompt)
| 104 | } |
| 105 | |
| 106 | function clonePrompt(prompt: RunPrompt): RunPrompt { |
| 107 | return { |
| 108 | text: prompt.text, |
| 109 | parts: structuredClone(prompt.parts), |
| 110 | ...(prompt.mode ? { mode: prompt.mode } : {}), |
| 111 | ...(prompt.command ? { command: prompt.command } : {}), |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | function emptyPrompt(shell: boolean): RunPrompt { |
| 116 | return shell ? { text: "", parts: [], mode: "shell" } : { text: "", parts: [] } |
no outgoing calls
no test coverage detected