@returns {ThreadResumeParams}
(threadId, cwd, options = {})
| 73 | |
| 74 | /** @returns {ThreadResumeParams} */ |
| 75 | function buildResumeParams(threadId, cwd, options = {}) { |
| 76 | return { |
| 77 | threadId, |
| 78 | cwd, |
| 79 | model: options.model ?? null, |
| 80 | approvalPolicy: options.approvalPolicy ?? "never", |
| 81 | sandbox: options.sandbox ?? "read-only" |
| 82 | }; |
| 83 | } |
| 84 | |
| 85 | /** @returns {UserInput[]} */ |
| 86 | function buildTurnInput(prompt) { |