MCPcopy Index your code
hub / github.com/callstack/agent-device / formatClickLikeActionLine

Function formatClickLikeActionLine

src/daemon/session-script-writer.ts:191–206  ·  view source on GitHub ↗
(parts: string[], action: SessionAction)

Source from the content-addressed store, hash-verified

189}
190
191function formatClickLikeActionLine(parts: string[], action: SessionAction): string | undefined {
192 const first = action.positionals?.[0];
193 if (!first) return undefined;
194 if (first.startsWith('@')) {
195 parts.push(formatScriptArg(first));
196 appendRefLabel(parts, action);
197 appendScriptSeriesFlags(parts, action);
198 return parts.join(' ');
199 }
200 if (action.positionals.length === 1) {
201 parts.push(formatScriptArg(first));
202 appendScriptSeriesFlags(parts, action);
203 return parts.join(' ');
204 }
205 return undefined;
206}
207
208function formatFillActionLine(parts: string[], action: SessionAction): string | undefined {
209 const ref = action.positionals?.[0];

Callers 1

formatSpecialActionLineFunction · 0.85

Calls 5

formatScriptArgFunction · 0.90
appendScriptSeriesFlagsFunction · 0.90
appendRefLabelFunction · 0.85
startsWithMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected