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

Function formatFillActionLine

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

Source from the content-addressed store, hash-verified

206}
207
208function formatFillActionLine(parts: string[], action: SessionAction): string | undefined {
209 const ref = action.positionals?.[0];
210 if (!ref?.startsWith('@')) return undefined;
211 parts.push(formatScriptArg(ref));
212 appendRefLabel(parts, action);
213 const text = action.positionals.slice(1).join(' ');
214 // Preserve explicit empty-string fill arguments.
215 if (action.positionals.length > 1) {
216 parts.push(formatScriptArg(text));
217 }
218 appendScriptSeriesFlags(parts, action);
219 return parts.join(' ');
220}
221
222function formatGetActionLine(parts: string[], action: SessionAction): string | undefined {
223 const sub = 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…