MCPcopy
hub / github.com/RedPlanetHQ/core / buildResumeArgs

Function buildResumeArgs

packages/cli/src/utils/coding-runner.ts:71–83  ·  view source on GitHub ↗
(
	config: CliBackendConfig,
	params: {prompt?: string; sessionId: string},
)

Source from the content-addressed store, hash-verified

69 * set for a prompt-on-resume flow.
70 */
71export 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
85export type Logger = (message: string) => void;
86

Callers 3

handleAskFunction · 0.90
tryRespawnFunction · 0.90
codingSpawnRouteFunction · 0.90

Calls 2

buildStartArgsFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected