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

Function validateOutputKeys

src/compat/maestro/run-script.ts:210–218  ·  view source on GitHub ↗
(output: Record<string, unknown>, scriptPath: string)

Source from the content-addressed store, hash-verified

208}
209
210function validateOutputKeys(output: Record<string, unknown>, scriptPath: string): void {
211 for (const key of Object.keys(output)) {
212 if (!key.includes('.')) continue;
213 throw new AppError('INVALID_ARGS', `Maestro runScript output key cannot contain ".": ${key}`, {
214 scriptPath,
215 key,
216 });
217 }
218}
219
220function stringifyOutputValue(value: unknown): string {
221 if (typeof value === 'string') return value;

Callers 1

executeRunScriptFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…