(
config: CliBackendConfig,
params: {prompt?: string; sessionId: string},
)
| 69 | * set for a prompt-on-resume flow. |
| 70 | */ |
| 71 | export function buildResumeArgs( |
| 72 | config: CliBackendConfig, |
| 73 | params: {prompt?: string; sessionId: string}, |
| 74 | ): string[] { |
| 75 | if (config.resumeArgs) { |
| 76 | const args = config.resumeArgs.map(arg => |
| 77 | arg.replace('{sessionId}', params.sessionId), |
| 78 | ); |
| 79 | if (params.prompt) args.push(params.prompt); |
| 80 | return args; |
| 81 | } |
| 82 | return buildStartArgs(config, params); |
| 83 | } |
| 84 | |
| 85 | export type Logger = (message: string) => void; |
| 86 |
no test coverage detected